[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jan 17 11:47:25 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.268 -> 1.269
---
Log message:
Bug fix: missing LegalizeOp() on newly created nodes.
---
Diffs of the changes: (+6 -1)
LegalizeDAG.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.268 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.269
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.268 Tue Jan 17 11:31:53 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Jan 17 13:47:13 2006
@@ -1639,6 +1639,7 @@
// Perform the larger operation, then round down.
Result = DAG.getNode(ISD::SELECT, NVT, Tmp1, Tmp2,Tmp3);
Result = DAG.getNode(TruncOp, Node->getValueType(0), Result);
+ Result = LegalizeOp(Result);
break;
}
}
@@ -1838,6 +1839,7 @@
Result = DAG.getNode(ISD::SETCC, Node->getValueType(0), Tmp1, Tmp2,
Node->getOperand(2));
+ Result = LegalizeOp(Result);
break;
}
case TargetLowering::Custom: {
@@ -2246,6 +2248,7 @@
Tmp1 = DAG.getNode(ISD::BSWAP, NVT, Tmp1);
Result = DAG.getNode(ISD::SRL, NVT, Tmp1,
DAG.getConstant(DiffBits, TLI.getShiftAmountTy()));
+ Result = LegalizeOp(Result);
break;
}
case TargetLowering::Custom:
@@ -2316,6 +2319,7 @@
break;
}
}
+ Result = LegalizeOp(Result);
break;
}
}
@@ -2358,6 +2362,7 @@
getSizeInBits(OVT), NVT));
break;
}
+ Result = LegalizeOp(Result);
break;
}
case TargetLowering::Custom:
@@ -2384,7 +2389,7 @@
DAG.getNode(ISD::SRL, VT, Tmp1, Tmp3),
Tmp2));
}
- Result = Tmp1;
+ Result = LegalizeOp(Tmp1);
break;
}
case ISD::CTLZ: {
More information about the llvm-commits
mailing list