[all-commits] [llvm/llvm-project] 10d9e7: Reapply "[WebAssembly] Constant fold wasm.dot" (#1...
Jasmine Tang via All-commits
all-commits at lists.llvm.org
Thu Aug 14 18:52:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10d9e7b1b7913586bb2663cba57c6e25f68a404f
https://github.com/llvm/llvm-project/commit/10d9e7b1b7913586bb2663cba57c6e25f68a404f
Author: Jasmine Tang <jjasmine at igalia.com>
Date: 2025-08-14 (Thu, 14 Aug 2025)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
A llvm/test/Transforms/InstSimplify/ConstProp/WebAssembly/dot.ll
Log Message:
-----------
Reapply "[WebAssembly] Constant fold wasm.dot" (#153070)
In #149619, for the test of `@dot_follow_modulo_spec_2`, constant
folding the addition of two i32 1073741824 causes an overflow from 2^32
to -2^32=-2147483648, which triggers the UB sanitizer. This PR reapplies
the previous PR, explicitly casting the addition operand to int64_t
first before performing the addition before producing a int32 number via
`Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned)`
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list