[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 1 22:15:21 PST 2006



Changes in directory llvm/lib/Target:

TargetLowering.cpp updated: 1.51 -> 1.52
---
Log message:

Allow targets to compute masked bits for intrinsics.


---
Diffs of the changes:  (+9 -4)

 TargetLowering.cpp |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.51 llvm/lib/Target/TargetLowering.cpp:1.52
--- llvm/lib/Target/TargetLowering.cpp:1.51	Thu Mar 30 19:50:09 2006
+++ llvm/lib/Target/TargetLowering.cpp	Sun Apr  2 00:15:09 2006
@@ -619,9 +619,10 @@
   }
   case ISD::ADD:
   case ISD::SUB:
-    // Just use ComputeMaskedBits to compute output bits, there are no
-    // simplifications that can be done here, and sub always demands all input
-    // bits.
+  case ISD::INTRINSIC_WO_CHAIN:
+  case ISD::INTRINSIC_W_CHAIN:
+  case ISD::INTRINSIC_VOID:
+    // Just use ComputeMaskedBits to compute output bits.
     ComputeMaskedBits(Op, DemandedMask, KnownZero, KnownOne, Depth);
     break;
   }
@@ -916,8 +917,12 @@
   }
   default:
     // Allow the target to implement this method for its nodes.
-    if (Op.getOpcode() >= ISD::BUILTIN_OP_END)
+    if (Op.getOpcode() >= ISD::BUILTIN_OP_END) {
+  case ISD::INTRINSIC_WO_CHAIN:
+  case ISD::INTRINSIC_W_CHAIN:
+  case ISD::INTRINSIC_VOID:
       computeMaskedBitsForTargetNode(Op, Mask, KnownZero, KnownOne);
+    }
     return;
   }
 }






More information about the llvm-commits mailing list