remove pointless assert
authorMatthias Braun <matze@braunis.de>
Fri, 6 Sep 2013 16:44:27 +0000 (16:44 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 6 Sep 2013 16:44:27 +0000 (16:44 +0000)
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

lib/CodeGen/RegisterCoalescer.cpp

index 76a46303b074603aaba5e08a8429af60915da9b4..7bfb54de374739007fbc47135614d9706d6f6807 100644 (file)
@@ -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");