mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
remove pointless assert
The if above it ensures the property anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c725865bbc
commit
2d5558cbae
@ -583,8 +583,6 @@ bool RegisterCoalescer::removeCopyByCommutingDef(const CoalescerPair &CP,
|
|||||||
if (!BValNo || BValNo->def != CopyIdx)
|
if (!BValNo || BValNo->def != CopyIdx)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
assert(BValNo->def == CopyIdx && "Copy doesn't define the value?");
|
|
||||||
|
|
||||||
// AValNo is the value number in A that defines the copy, A3 in the example.
|
// AValNo is the value number in A that defines the copy, A3 in the example.
|
||||||
VNInfo *AValNo = IntA.getVNInfoAt(CopyIdx.getRegSlot(true));
|
VNInfo *AValNo = IntA.getVNInfoAt(CopyIdx.getRegSlot(true));
|
||||||
assert(AValNo && "COPY source not live");
|
assert(AValNo && "COPY source not live");
|
||||||
|
Loading…
Reference in New Issue
Block a user