[llvm] 30a0dbb - [X86] Remove x86_sse42_crc32_64_64 from X86TTIImpl::simplifyDemandedUseBitsIntrinsic
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 22:00:03 PDT 2020
Author: Craig Topper
Date: 2020-07-30T21:51:23-07:00
New Revision: 30a0dbb70d9e0c94a9bdc3d28e7c1c57d9891912
URL: https://github.com/llvm/llvm-project/commit/30a0dbb70d9e0c94a9bdc3d28e7c1c57d9891912
DIFF: https://github.com/llvm/llvm-project/commit/30a0dbb70d9e0c94a9bdc3d28e7c1c57d9891912.diff
LOG: [X86] Remove x86_sse42_crc32_64_64 from X86TTIImpl::simplifyDemandedUseBitsIntrinsic
It doesn't do any simplifying. It just computes known bits. We
can just let InstCombine call computeKnownBits which will handle
this just as well.
Added:
Modified:
llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp b/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
index 91341f93a994..aea355a29731 100644
--- a/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
+++ b/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
@@ -1785,10 +1785,6 @@ Optional<Value *> X86TTIImpl::simplifyDemandedUseBitsIntrinsic(
KnownBitsComputed = true;
break;
}
- case Intrinsic::x86_sse42_crc32_64_64:
- Known.Zero.setBitsFrom(32);
- KnownBitsComputed = true;
- break;
}
return None;
}
More information about the llvm-commits
mailing list