[all-commits] [llvm/llvm-project] 019049: [ConstraintElim] Use MulOverflow to avoid UB on si...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Oct 13 05:58:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 019049a1caf2d2057a1248ed61c9e178d1027971
https://github.com/llvm/llvm-project/commit/019049a1caf2d2057a1248ed61c9e178d1027971
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-10-13 (Thu, 13 Oct 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
Log Message:
-----------
[ConstraintElim] Use MulOverflow to avoid UB on signed overflow.
This fixes an UBSan failure after 359bc5c541ae. For inbounds GEP with
index sizes <= 64, having the coefficients overflowing is fine.
More information about the All-commits
mailing list