Use getVNInfoAt.

llvm-svn: 134312
This commit is contained in:
Rafael Espindola 2011-07-02 07:50:27 +00:00
parent e925f22b40
commit ed33752769
1 changed files with 1 additions and 2 deletions

View File

@ -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);