[llvm] [LLVM][ConstProp] Enable intrinsic simplifications for vector ConstantInt based operands. (PR #159358)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 04:54:57 PDT 2025


================
@@ -3096,6 +3083,9 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
 
     case Intrinsic::wasm_alltrue:
       // Check each element individually
+      if (!isa<ConstantVector, ConstantDataVector, ConstantAggregateZero,
+               ConstantInt>(Op))
+        break;
----------------
paulwalker-arm wrote:

I moved the check here because it's not just a case of adding an early exit. The code will then have to track "known true" values, so I figured it was better to keep the code simple?

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


More information about the llvm-commits mailing list