summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Thumb2InstrInfo.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-01 20:28:06 +0000
committerOwen Anderson <resistor@mac.com>2010-10-01 20:28:06 +0000
commitaa9f0a57d03b1eef5a58c48b05f6657d2a5a0d0a (patch)
tree87966bd3faa5816c8f15a550fc50ad7424e5d3dc /lib/Target/ARM/Thumb2InstrInfo.h
parent7267e14327b269bd15dd9cc8083f68bef577b585 (diff)
downloadllvm-aa9f0a57d03b1eef5a58c48b05f6657d2a5a0d0a.tar.gz
llvm-aa9f0a57d03b1eef5a58c48b05f6657d2a5a0d0a.tar.bz2
llvm-aa9f0a57d03b1eef5a58c48b05f6657d2a5a0d0a.tar.xz
Provide an option to restore old-style if-conversion heuristics for Thumb2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb2InstrInfo.h')
-rw-r--r--lib/Target/ARM/Thumb2InstrInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/Thumb2InstrInfo.h b/lib/Target/ARM/Thumb2InstrInfo.h
index 9ed7eea7e2..f9b1f32e62 100644
--- a/lib/Target/ARM/Thumb2InstrInfo.h
+++ b/lib/Target/ARM/Thumb2InstrInfo.h
@@ -38,6 +38,12 @@ public:
bool isLegalToSplitMBBAt(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MBBI) const;
+ bool isProfitableToIfCvt(MachineBasicBlock &MBB, unsigned NumInstrs,
+ float Prediction) const;
+ bool isProfitableToIfCvt(MachineBasicBlock &TMBB, unsigned NumTInstrs,
+ MachineBasicBlock &FMBB, unsigned NumFInstrs,
+ float Prediction) const;
+
void copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I, DebugLoc DL,
unsigned DestReg, unsigned SrcReg,