[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp
Nate Begeman
natebegeman at mac.com
Thu Aug 25 13:01:21 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelLowering.cpp updated: 1.6 -> 1.7
---
Log message:
Remove option to make SetCC illegal on PowerPC after long discussion with
Chris. This will be accomplished through correctly modeling CR's and
subregs.
---
Diffs of the changes: (+0 -11)
PPC32ISelLowering.cpp | 11 -----------
1 files changed, 11 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.6 llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.7
--- llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp:1.6 Tue Aug 23 00:45:10 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelLowering.cpp Thu Aug 25 15:01:10 2005
@@ -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 @@
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); //
More information about the llvm-commits
mailing list