diff options
author | Florian Hahn <flo@fhahn.com> | 2024-10-17 13:55:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 13:55:20 -0700 |
commit | b060661da8b3b53db55644e5e358bb2dca8b56d7 (patch) | |
tree | fe3e2538530b9f8ea72473f24673047034569dac /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | e913a33fcfbd667e4e3a35919b6bd9c5876a90a3 (diff) | |
download | llvm-b060661da8b3b53db55644e5e358bb2dca8b56d7.zip llvm-b060661da8b3b53db55644e5e358bb2dca8b56d7.tar.gz llvm-b060661da8b3b53db55644e5e358bb2dca8b56d7.tar.bz2 |
[SCEVExpander] Expand UDiv avoiding UB when in seq_min/max. (#92177)
Update SCEVExpander to introduce an SafeUDivMode, which is set
when expanding operands of SCEVSequentialMinMaxExpr. In this mode,
the expander will make sure that the divisor of the expanded UDiv is
neither 0 nor poison.
Fixes https://github.com/llvm/llvm-project/issues/89958.
PR https://github.com/llvm/llvm-project/pull/92177
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions