Use the "isCompare" machine instruction attribute instead of calling the
authorBill Wendling <isanbard@gmail.com>
Sun, 8 Aug 2010 05:04:59 +0000 (05:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 8 Aug 2010 05:04:59 +0000 (05:04 +0000)
commitc98af3370f899a0d1570b1dff01a2e36632f884f
tree6c3608f5e6e1d1822d0cb67adae4de8fa837e410
parentbe04fdeb6c46e92fdeda7535c5912d072eff008c
Use the "isCompare" machine instruction attribute instead of calling the
relatively expensive comparison analyzer on each instruction. Also rename the
comparison analyzer method to something more in line with what it actually does.

This pass is will eventually be folded into the Machine CSE pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110539 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/OptimizeCmps.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMInstrThumb2.td