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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 21 08:31: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;
----------------
nikic wrote:

Also drop this check, and replace it with an early exit if getAggregateElement fails?

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


More information about the llvm-commits mailing list