From: Juergen Ributzka Date: Fri, 15 Aug 2014 17:36:30 +0000 (+0000) Subject: [FastISel] Remove an performance debugging assert. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f92cdd62c06a908ec856f1fe4e7ed96638e6a949;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215735 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 1c2cee29a79..6be5f8a57e2 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1693,7 +1693,6 @@ unsigned FastISel::FastEmit_ri_(MVT VT, unsigned Opcode, 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,