[llvm] [CVP]: Fold `icmp eq X, C` to `trunc X to i1` if C=2k+1 and X in [2k, 2k+1] (PR #83829)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 9 05:00:10 PST 2024


================
@@ -734,15 +734,6 @@ Instruction *InstCombinerImpl::visitTrunc(TruncInst &Trunc) {
 
   if (DestWidth == 1) {
     Value *Zero = Constant::getNullValue(SrcTy);
-    if (DestTy->isIntegerTy()) {
----------------
dtcxzyw wrote:

Could you please file a new PR for this change?


https://github.com/llvm/llvm-project/pull/83829


More information about the llvm-commits mailing list