Fix a bug in my legalizer reworking that caused the X86 backend to not get
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 22:43:50 +0000 (22:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 22:43:50 +0000 (22:43 +0000)
a chance to custom legalize setcc, which broke a bunch of C++ Codes.
Testcase here: CodeGen/X86/2006-01-30-LongSetcc.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 04fef370171effbb31f9b4ff04953125c6234550..79037d3020f52aac22a557fae3b0eb946f9cfbc9 100644 (file)
@@ -1465,8 +1465,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
       }
     }
 
-    switch (TLI.getOperationAction(ISD::SETCC,
-                                   Node->getOperand(0).getValueType())) {
+    switch (TLI.getOperationAction(ISD::SETCC, Tmp1.getValueType())) {
     default: assert(0 && "Cannot handle this action for SETCC yet!");
     case TargetLowering::Custom:
       isCustom = true;