summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegisterCoalescer.cpp
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
commit2d5558cbaecfcaea72b80a725417dde6ed80ee04 (patch)
tree9d8e6c44fc5372c06714de1cd16a7fbd89741e87 /lib/CodeGen/RegisterCoalescer.cpp
parentc725865bbcfb935f3698f26b6608fdbd2b2d3fd4 (diff)
downloadllvm-2d5558cbaecfcaea72b80a725417dde6ed80ee04.tar.gz
llvm-2d5558cbaecfcaea72b80a725417dde6ed80ee04.tar.bz2
llvm-2d5558cbaecfcaea72b80a725417dde6ed80ee04.tar.xz
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
Diffstat (limited to 'lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r--lib/CodeGen/RegisterCoalescer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp
index 76a46303b0..7bfb54de37 100644
--- a/lib/CodeGen/RegisterCoalescer.cpp
+++ b/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");