Cleanup PromoteIntOp_EXTRACT_VECTOR_ELT and PromoteIntRes_SETCC.
authorNadav Rotem <nadav.rotem@intel.com>
Tue, 27 Sep 2011 11:16:47 +0000 (11:16 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Tue, 27 Sep 2011 11:16:47 +0000 (11:16 +0000)
commita3c42f3d4e5d14c8f4fb9bb123e7759c425d041b
tree05aeb85d6209ecefa08b736bbc7ef90c2249d3bb
parenta1c415cfc2dba4446021f322e4b7a43534a96f1a
Cleanup PromoteIntOp_EXTRACT_VECTOR_ELT and PromoteIntRes_SETCC.
Add a new method: getAnyExtOrTrunc and use it to replace the manual check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140603 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp