[llvm] r215735 - [FastISel] Remove an performance debugging assert.

Juergen Ributzka juergen at apple.com
Fri Aug 15 10:37:09 PDT 2014


Author: ributzka
Date: Fri Aug 15 12:36:30 2014
New Revision: 215735

URL: http://llvm.org/viewvc/llvm-project?rev=215735&view=rev
Log:
[FastISel] Remove an performance debugging assert.

As Jim pointed out this assert isn't really needed to test for correctness,
because the code right afterwards does the same check and falls-back to
SelectionDAG - as intended.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=215735&r1=215734&r2=215735&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Fri Aug 15 12:36:30 2014
@@ -1693,7 +1693,6 @@ unsigned FastISel::FastEmit_ri_(MVT VT,
     IntegerType *ITy = IntegerType::get(FuncInfo.Fn->getContext(),
                                               VT.getSizeInBits());
     MaterialReg = getRegForValue(ConstantInt::get(ITy, Imm));
-    assert (MaterialReg != 0 && "Unable to materialize imm.");
     if (MaterialReg == 0) return 0;
   }
   return FastEmit_rr(VT, VT, Opcode,





More information about the llvm-commits mailing list