diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-23 21:01:15 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-23 21:01:15 +0000 |
commit | 20948fab69da38a73972b10683bd11edc981f951 (patch) | |
tree | ea742a9fb69340597a2ea5bfa8fd90a052a92386 /llvm/lib/CodeGen | |
parent | 9082353e3bca4c4520b02773bfb746749b452d4b (diff) | |
download | bcm5719-llvm-20948fab69da38a73972b10683bd11edc981f951.tar.gz bcm5719-llvm-20948fab69da38a73972b10683bd11edc981f951.zip |
Fix PR11829. PostRA LICM was too aggressive.
This fixes a typo in r148589.
llvm-svn: 148724
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index b9028ec6818..49a109e252c 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -462,13 +462,13 @@ void MachineLICM::ProcessMI(MachineInstr *MI, // register, then this is not safe. Two defs is indicated by setting a // PhysRegClobbers bit. for (const unsigned *AS = TRI->getOverlaps(Reg); *AS; ++AS) { - if (PhysRegDefs.test(Reg)) - PhysRegClobbers.set(Reg); - if (PhysRegClobbers.test(Reg)) + if (PhysRegDefs.test(*AS)) + PhysRegClobbers.set(*AS); + if (PhysRegClobbers.test(*AS)) // MI defined register is seen defined by another instruction in // the loop, it cannot be a LICM candidate. RuledOut = true; - PhysRegDefs.set(Reg); + PhysRegDefs.set(*AS); } } |