Part one of switching to using a more sane heuristic for determining if-conversion...
authorOwen Anderson <resistor@mac.com>
Tue, 28 Sep 2010 18:32:13 +0000 (18:32 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 28 Sep 2010 18:32:13 +0000 (18:32 +0000)
commitb20b85168c0e9819e6545f08281e9b83c82108f0
treeba75b27d14400c20576dcdb80960a9b138e9e4ef
parentf2d7b7c879548090beae51b21c4b363da7dbbaad
Part one of switching to using a more sane heuristic for determining if-conversion profitability.
Rather than having arbitrary cutoffs, actually try to cost model the conversion.

For now, the constants are tuned to more or less match our existing behavior, but these will be
changed to reflect realistic values as this work proceeds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114973 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/IfConversion.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/Thumb2InstrInfo.cpp
lib/Target/ARM/Thumb2InstrInfo.h
test/CodeGen/ARM/lsr-on-unrolled-loops.ll