Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Nikita Popov b27ab06a3d [InstCombine] Preserve flags for difference of gep chains (#143488)
When expanding the offset of a GEP chain via a series of adds, try to
preserve the nsw/nuw flags based on inbounds/nuw. This is a followup to
https://github.com/llvm/llvm-project/pull/142958.

Proof: https://alive2.llvm.org/ce/z/8HiFYY (note that preserving nsw in
the nusw case is not valid)
2025-06-10 16:19:45 +02:00

113 KiB