summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-09-06 16:44:27 +0000
committerMatthias Braun <matze@braunis.de>2013-09-06 16:44:27 +0000
commitc0ad7bfa629ee144a6743bc30e18cc75b5423999 (patch)
tree8955f00cfd4b4b1e56d469c9bdb88dd637c3c7e5 /llvm/lib/CodeGen
parentb348d9703c138ef79123110cfb6aad9308b73e37 (diff)
downloadbcm5719-llvm-c0ad7bfa629ee144a6743bc30e18cc75b5423999.tar.gz
bcm5719-llvm-c0ad7bfa629ee144a6743bc30e18cc75b5423999.zip
remove pointless assert
The if above it ensures the property anyway. llvm-svn: 190168
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 76a46303b07..7bfb54de374 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -583,8 +583,6 @@ bool RegisterCoalescer::removeCopyByCommutingDef(const CoalescerPair &CP,
if (!BValNo || BValNo->def != CopyIdx)
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.
VNInfo *AValNo = IntA.getVNInfoAt(CopyIdx.getRegSlot(true));
assert(AValNo && "COPY source not live");
OpenPOWER on IntegriCloud