diff options
| author | Nate Begeman <natebegeman@mac.com> | 2008-07-29 19:07:27 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2008-07-29 19:07:27 +0000 |
| commit | 82f1925708b0d1ae786fd93aa6da099a9335bda8 (patch) | |
| tree | 98f78e7ef2514e717c385e8b6d2ab86ab469acfd /llvm/lib/CodeGen/SelectionDAG | |
| parent | e683bbabc7da07bfa7549c04fa98157f8c894f09 (diff) | |
| download | bcm5719-llvm-82f1925708b0d1ae786fd93aa6da099a9335bda8.tar.gz bcm5719-llvm-82f1925708b0d1ae786fd93aa6da099a9335bda8.zip | |
Fix broken CellSPU lowering, re-instate braces in Legalize
llvm-svn: 54168
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 8cdfcfa2acf..d8d45d04eb7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2976,12 +2976,10 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) { case TargetLowering::Legal: break; case TargetLowering::Custom: Tmp1 = TLI.LowerOperation(Result, DAG); - if (Tmp1.Val) - // FIXME: these braces are correct, but breaks CellSPU codegen. - //{ + if (Tmp1.Val) { Result = Tmp1; break; - //} + } // Fall through if the custom lower can't deal with the operation case TargetLowering::Expand: { MVT VT = Op.getValueType(); |

