summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-08-14 18:38:32 +0000
committerNate Begeman <natebegeman@mac.com>2005-08-14 18:38:32 +0000
commitd5e739dcc212d3ec582fa31467f47b25e8346e08 (patch)
treeaae33dc7882ae1a72666653923b65283a583ac08 /llvm/lib/CodeGen
parente5394d453d2209ba5ce831c39b24c666ad710e28 (diff)
downloadbcm5719-llvm-d5e739dcc212d3ec582fa31467f47b25e8346e08.tar.gz
bcm5719-llvm-d5e739dcc212d3ec582fa31467f47b25e8346e08.zip
Fix last night's PPC32 regressions by
1. Not selecting the false value of a select_cc in the false arm, which isn't legal for nested selects. 2. Actually returning the node we created and Legalized in the FP_TO_UINT Expander. llvm-svn: 22789
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index b3317858917..3d13b21f224 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1625,6 +1625,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
False = DAG.getNode(ISD::XOR, NVT, False,
DAG.getConstant(1ULL << ShiftAmt, NVT));
Result = LegalizeOp(DAG.getNode(ISD::SELECT, NVT, Tmp3, True, False));
+ return Result;
} else {
assert(0 && "Do not know how to expand FP_TO_SINT yet!");
}
OpenPOWER on IntegriCloud