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 | 19f5f71bba08e690611fa213647ac6bae814756b (patch) | |
tree | ac9c6a3d5362c81c28b43255dc1819fd6dbacb53 /include | |
parent | 00c53caa339f954cb3590a05e8653b864b4355cf (diff) | |
download | external_llvm-19f5f71bba08e690611fa213647ac6bae814756b.zip external_llvm-19f5f71bba08e690611fa213647ac6bae814756b.tar.gz external_llvm-19f5f71bba08e690611fa213647ac6bae814756b.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 |