OSDN Git Service

Custom DAGCombine for and/or/xor are for all ARMs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 7 Sep 2012 17:34:15 +0000 (17:34 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 7 Sep 2012 17:34:15 +0000 (17:34 +0000)
The 'select' transformations apply to all ARM architectures and don't
require hasV6T2Ops.

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

lib/Target/ARM/ARMISelLowering.cpp

index 5f3a9c7..29ca8ea 100644 (file)
@@ -796,12 +796,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
   setTargetDAGCombine(ISD::ADD);
   setTargetDAGCombine(ISD::SUB);
   setTargetDAGCombine(ISD::MUL);
-
-  if (Subtarget->hasV6T2Ops() || Subtarget->hasNEON()) {
-    setTargetDAGCombine(ISD::AND);
-    setTargetDAGCombine(ISD::OR);
-    setTargetDAGCombine(ISD::XOR);
-  }
+  setTargetDAGCombine(ISD::AND);
+  setTargetDAGCombine(ISD::OR);
+  setTargetDAGCombine(ISD::XOR);
 
   if (Subtarget->hasV6Ops())
     setTargetDAGCombine(ISD::SRL);