diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-21 17:36:32 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-21 17:36:32 +0000 |
commit | 7601de6e9b8f88939bef505184b9ff6bdc7d8430 (patch) | |
tree | ac9c6a3d5362c81c28b43255dc1819fd6dbacb53 /include | |
parent | 9d53a41099f8da0845f23177cf375ba6556fa6b6 (diff) | |
download | external_llvm-7601de6e9b8f88939bef505184b9ff6bdc7d8430.zip external_llvm-7601de6e9b8f88939bef505184b9ff6bdc7d8430.tar.gz external_llvm-7601de6e9b8f88939bef505184b9ff6bdc7d8430.tar.bz2 |
Revert "Use MachineInstr::readsWritesVirtualRegister to determine if a register is read."
This reverts r104322. I think it was causing miscompilations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index cd72344..5e62f0b 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -28,7 +28,6 @@ namespace llvm { -template <typename T> class SmallVectorImpl; class AliasAnalysis; class TargetInstrDesc; class TargetInstrInfo; @@ -240,16 +239,7 @@ public: /// readsVirtualRegister - Return true if the MachineInstr reads the specified /// virtual register. Take into account that a partial define is a /// read-modify-write operation. - bool readsVirtualRegister(unsigned Reg) const { - return readsWritesVirtualRegister(Reg).first; - } - - /// readsWritesVirtualRegister - Return a pair of bools (reads, writes) - /// indicating if this instruction reads or writes Reg. This also considers - /// partial defines. - /// If Ops is not null, all operand indices for Reg are added. - std::pair<bool,bool> readsWritesVirtualRegister(unsigned Reg, - SmallVectorImpl<unsigned> *Ops = 0) const; + bool readsVirtualRegister(unsigned Reg) const; /// killsRegister - Return true if the MachineInstr kills the specified /// register. If TargetRegisterInfo is passed, then it also checks if there is |