summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterCoalescer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-07-02 07:50:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-07-02 07:50:27 +0000
commited33752769c97dc47493e760e3a67fb939a5ec57 (patch)
tree3607f95e47d6e1a1ca2b3f113aea6573ec2697e1 /llvm/lib/CodeGen/RegisterCoalescer.cpp
parente925f22b407d6559d00787ac530c578e56fd9c73 (diff)
downloadbcm5719-llvm-ed33752769c97dc47493e760e3a67fb939a5ec57.tar.gz
bcm5719-llvm-ed33752769c97dc47493e760e3a67fb939a5ec57.zip
Use getVNInfoAt.
llvm-svn: 134312
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 13ae04283a9..3b2046a5c9e 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -1253,8 +1253,7 @@ static bool RegistersDefinedFromSameValue(LiveIntervals &li,
// If the copies use two different value numbers of X, we cannot merge
// A and B.
- if (SrcInt.FindLiveRangeContaining(Other->def)->valno !=
- SrcInt.FindLiveRangeContaining(VNI->def)->valno)
+ if (SrcInt.getVNInfoAt(Other->def) != SrcInt.getVNInfoAt(VNI->def))
return false;
DupCopies.push_back(MI);
OpenPOWER on IntegriCloud