From 2a746bfe368e839439f5d8942fdd14ed6bd8a6f5 Mon Sep 17 00:00:00 2001 From: Evan Cheng <evan.cheng@apple.com> Date: Sun, 22 May 2011 18:25:30 +0000 Subject: [PATCH] Teach ValueTracking about x86 crc32 intrinsics. llvm-svn: 131861 --- llvm/lib/Analysis/ValueTracking.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 8f18dd278aa0..7b7e39f6c410 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -670,6 +670,10 @@ void llvm::ComputeMaskedBits(Value *V, const APInt &Mask, KnownZero = APInt::getHighBitsSet(BitWidth, BitWidth - LowBits); break; } + case Intrinsic::x86_sse42_crc64_8: + case Intrinsic::x86_sse42_crc64_64: + KnownZero = APInt::getHighBitsSet(64, 32); + break; } } break;