[llvm] r190168 - remove pointless assert
Matthias Braun
matze at braunis.de
Fri Sep 6 09:44:27 PDT 2013
Author: matze
Date: Fri Sep 6 11:44:27 2013
New Revision: 190168
URL: http://llvm.org/viewvc/llvm-project?rev=190168&view=rev
Log:
remove pointless assert
The if above it ensures the property anyway.
Modified:
llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=190168&r1=190167&r2=190168&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Fri Sep 6 11:44:27 2013
@@ -583,8 +583,6 @@ bool RegisterCoalescer::removeCopyByComm
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");
More information about the llvm-commits
mailing list