Lower prefetch to a noop, patch contributed by Justin Wick!
authorChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2005 19:27:23 +0000 (19:27 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2005 19:27:23 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20375 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IntrinsicLowering.cpp

index 63ff815291381b682516a1df70af21de4e472a54..85e8ba533fd2e5cb019e8ffd0f9cc55f463bfbe9 100644 (file)
@@ -169,6 +169,9 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
                                             cast<PointerType>(CI->getType())));
     break;
 
+  case Intrinsic::prefetch:
+    break;    // Simply strip out prefetches on unsupported architectures
+
   case Intrinsic::dbg_stoppoint:
   case Intrinsic::dbg_region_start:
   case Intrinsic::dbg_region_end: