diff options
| author | JF Bastien <jfb@google.com> | 2015-08-05 20:53:56 +0000 |
|---|---|---|
| committer | JF Bastien <jfb@google.com> | 2015-08-05 20:53:56 +0000 |
| commit | 7c4218f49c7ffe9feb06751e3d530c53500662f3 (patch) | |
| tree | 8c3a3905396e3aa08b2c2eb719ba2568f3d518fd /llvm/lib/CodeGen | |
| parent | ce5256f5c51246286d1e5179872e149c1f727804 (diff) | |
| download | bcm5719-llvm-7c4218f49c7ffe9feb06751e3d530c53500662f3.tar.gz bcm5719-llvm-7c4218f49c7ffe9feb06751e3d530c53500662f3.zip | |
Revert "Fix MO's analyzePhysReg, it was confusing sub- and super-registers. Problem pointed out by Michael Hordijk."
I mistakenly committed the patch for D6629, and was trying to commit another. Reverting until it gets proper signoff.
llvm-svn: 244121
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstrBundle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstrBundle.cpp b/llvm/lib/CodeGen/MachineInstrBundle.cpp index f6e45a4b7c7..cd820ee1ac5 100644 --- a/llvm/lib/CodeGen/MachineInstrBundle.cpp +++ b/llvm/lib/CodeGen/MachineInstrBundle.cpp @@ -310,7 +310,7 @@ MachineOperandIteratorBase::analyzePhysReg(unsigned Reg, if (!MOReg || !TargetRegisterInfo::isPhysicalRegister(MOReg)) continue; - bool IsRegOrSuperReg = MOReg == Reg || TRI->isSuperRegister(MOReg, Reg); + bool IsRegOrSuperReg = MOReg == Reg || TRI->isSubRegister(MOReg, Reg); bool IsRegOrOverlapping = MOReg == Reg || TRI->regsOverlap(MOReg, Reg); if (IsRegOrSuperReg && MO.readsReg()) { |

