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; |
} |