Accept and ignore prefetches for now
authorChris Lattner <sabre@nondot.org>
Mon, 12 Dec 2005 22:51:16 +0000 (22:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Dec 2005 22:51:16 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 0630fd37ef0f8e44b756238e4974baf6a0346e92..2807abef7c9a0fc2a9b7bed71a1fc9e3592e26a5 100644 (file)
@@ -992,6 +992,9 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
                              getValue(I.getOperand(1)).getValueType(),
                              getValue(I.getOperand(1))));
     return 0;
+  case Intrinsic::prefetch:
+    // FIXME: Currently discarding prefetches.
+    return 0;
   default:
     std::cerr << I;
     assert(0 && "This intrinsic is not implemented yet!");