summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-05 16:08:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-05 16:08:58 +0000
commitd06eaca66f5d5b81c06c9f899224c8b9884d5b2f (patch)
treefdda86ebefb511de448f3b3cb9eebbfe4881f731 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parentabde7f9d276369ffa2006861c1df040ac1006a69 (diff)
downloadbcm5719-llvm-d06eaca66f5d5b81c06c9f899224c8b9884d5b2f.tar.gz
bcm5719-llvm-d06eaca66f5d5b81c06c9f899224c8b9884d5b2f.zip
Rename a variable to make MSVC happy.
llvm-svn: 78202
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 08e0bcf85b6..b57bbc2ca5e 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -808,9 +808,9 @@ void SimpleRegisterCoalescing::RemoveUnnecessaryKills(unsigned Reg,
continue;
MachineInstr *UseMI = UseMO.getParent();
unsigned UseIdx = li_->getUseIndex(li_->getInstructionIndex(UseMI));
- const LiveRange *UI = LI.getLiveRangeContaining(UseIdx);
- if (!UI || !LI.isKill(UI->valno, UseIdx+1)) {
- if (UI->valno->def != UseIdx+1) {
+ const LiveRange *LR = LI.getLiveRangeContaining(UseIdx);
+ if (!LR || !LI.isKill(LR->valno, UseIdx+1)) {
+ if (LR->valno->def != UseIdx+1) {
// Interesting problem. After coalescing reg1027's def and kill are both
// at the same point: %reg1027,0.000000e+00 = [56,814:0) 0@70-(814)
//
OpenPOWER on IntegriCloud