summaryrefslogtreecommitdiff
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
commit017205d3c12a1b6b04c63f402eed1023c4c83c3e (patch)
tree87bfd5d9791a86096130c92ace10d6bd7c2f1d7f
parent0d3d95662f5a5b43045e8707b773048a7c317f13 (diff)
downloadllvm-017205d3c12a1b6b04c63f402eed1023c4c83c3e.tar.gz
llvm-017205d3c12a1b6b04c63f402eed1023c4c83c3e.tar.bz2
llvm-017205d3c12a1b6b04c63f402eed1023c4c83c3e.tar.xz
Use getVNInfoAt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134312 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/RegisterCoalescer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp
index 13ae04283a..3b2046a5c9 100644
--- a/lib/CodeGen/RegisterCoalescer.cpp
+++ b/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);