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

Unified Diff: lib/Transforms/InstCombine/InstCombineSimplifyDemanded.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/InstCombineCalls.cpp ('k') | lib/Transforms/Scalar/LoopStrengthReduce.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
===================================================================
--- lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (revision 138929)
+++ lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (working copy)
@@ -780,10 +780,12 @@
// TODO: Could compute known zero/one bits based on the input.
break;
}
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse42_crc32_64_8:
case Intrinsic::x86_sse42_crc32_64_64:
KnownZero = APInt::getHighBitsSet(64, 32);
return 0;
+#endif // TARGET_ENABLED_X86
}
}
ComputeMaskedBits(V, DemandedMask, KnownZero, KnownOne, Depth);
@@ -1084,6 +1086,7 @@
// Binary vector operations that work column-wise. A dest element is a
// function of the corresponding input elements from the two inputs.
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse_sub_ss:
case Intrinsic::x86_sse_mul_ss:
case Intrinsic::x86_sse_min_ss:
@@ -1145,6 +1148,7 @@
// like undef&0. The result is known zero, not undef.
UndefElts &= UndefElts2;
break;
+#endif // TARGET_ENABLED_X86
}
break;
}
« no previous file with comments | « lib/Transforms/InstCombine/InstCombineCalls.cpp ('k') | lib/Transforms/Scalar/LoopStrengthReduce.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698