Remove option to make SetCC illegal on PowerPC after long discussion with
authorNate Begeman <natebegeman@mac.com>
Thu, 25 Aug 2005 20:01:10 +0000 (20:01 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 25 Aug 2005 20:01:10 +0000 (20:01 +0000)
Chris.  This will be accomplished through correctly modeling CR's and
subregs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 1aa34102aa521ec4e65fca789f6d1ee466572010..644a73f6d1bec1d4b142fb724c9915196d39ed75 100644 (file)
 #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); //