mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Use getVNInfoAt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d3d95662f
commit
017205d3c1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user