diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-04 18:23:42 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-04 18:23:42 +0000 |
commit | c5041cac7d3aeaa7350abadf2a7ada92e8da27dc (patch) | |
tree | eefd36287fd9e7715a6717aa0c9c6f32384e081b /lib/Target/ARM/ARMBaseInstrInfo.h | |
parent | 1487cb3a5a0535b343e602e976af538fd87d0df2 (diff) | |
download | llvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.gz llvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.bz2 llvm-c5041cac7d3aeaa7350abadf2a7ada92e8da27dc.tar.xz |
Implement ARMBaseInstrInfo::commuteInstruction() for MOVCCr.
A MOVCCr instruction can be commuted by inverting the condition. This
can help reduce register pressure and remove unnecessary copies in some
cases.
<rdar://problem/11182914>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.h')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index 314e3177be..2fe85072a3 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -139,6 +139,8 @@ public: MachineInstr *duplicate(MachineInstr *Orig, MachineFunction &MF) const; + MachineInstr *commuteInstruction(MachineInstr*, bool=false) const; + virtual bool produceSameValue(const MachineInstr *MI0, const MachineInstr *MI1, const MachineRegisterInfo *MRI) const; |