Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1381)

Unified Diff: lib/Transforms/Scalar/LoopStrengthReduce.cpp

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp ('k') | test/Analysis/BasicAA/ARM/dg.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Transforms/Scalar/LoopStrengthReduce.cpp
===================================================================
--- lib/Transforms/Scalar/LoopStrengthReduce.cpp (revision 138929)
+++ lib/Transforms/Scalar/LoopStrengthReduce.cpp (working copy)
@@ -581,10 +581,12 @@
switch (II->getIntrinsicID()) {
default: break;
case Intrinsic::prefetch:
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse_storeu_ps:
case Intrinsic::x86_sse2_storeu_pd:
case Intrinsic::x86_sse2_storeu_dq:
case Intrinsic::x86_sse2_storel_dq:
+#endif // TARGET_ENABLED_X86
if (II->getArgOperand(0) == OperandVal)
isAddress = true;
break;
@@ -603,12 +605,14 @@
// of intrinsics.
switch (II->getIntrinsicID()) {
default: break;
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse_storeu_ps:
case Intrinsic::x86_sse2_storeu_pd:
case Intrinsic::x86_sse2_storeu_dq:
case Intrinsic::x86_sse2_storel_dq:
AccessTy = II->getArgOperand(0)->getType();
break;
+#endif // TARGET_ENABLED_X86
}
}
« no previous file with comments | « lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp ('k') | test/Analysis/BasicAA/ARM/dg.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698