diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-08-25 20:01:10 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-08-25 20:01:10 +0000 |
| commit | 65ffd8fbf4a5bf12a741760223d13a6db4d706a4 (patch) | |
| tree | 6aef6b386a235c947ace0a52fe62a78e8999c954 | |
| parent | f9c19157df87b27443e9c2490900b228371e3f94 (diff) | |
| download | bcm5719-llvm-65ffd8fbf4a5bf12a741760223d13a6db4d706a4.tar.gz bcm5719-llvm-65ffd8fbf4a5bf12a741760223d13a6db4d706a4.zip | |
Remove option to make SetCC illegal on PowerPC after long discussion with
Chris. This will be accomplished through correctly modeling CR's and
subregs.
llvm-svn: 23056
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 1aa34102aa5..644a73f6d1b 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -17,15 +17,8 @@ #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/Function.h" -#include "llvm/Support/CommandLine.h" - using namespace llvm; -namespace llvm { - cl::opt<bool> SetCCIllegal("ppc-setcc-is-illegal", cl::Hidden, - cl::desc("Make ISD::SETCC illegal on PowerPC")); -} - PPC32TargetLowering::PPC32TargetLowering(TargetMachine &TM) : TargetLowering(TM) { @@ -84,10 +77,6 @@ PPC32TargetLowering::PPC32TargetLowering(TargetMachine &TM) setOperationAction(ISD::SINT_TO_FP, MVT::i32, Expand); setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand); - // PowerPC does not have SETCC - if (SetCCIllegal) - setOperationAction(ISD::SETCC, MVT::i32, Expand); - setSetCCResultContents(ZeroOrOneSetCCResult); addLegalFPImmediate(+0.0); // Necessary for FSEL addLegalFPImmediate(-0.0); // |

