forked from OSchip/llvm-project
f3124a46c1
The SCEV code for constructing GEP expressions currently assumes that the addition of the base and all the offsets is nsw if the GEP is inbounds. While the addition of the offsets is indeed nsw, the addition to the base address is not, as the base address is interpreted as an unsigned value. Fix the GEP expression code to not assume nsw for the base+offset calculation. However, do assume nuw if we know that the offset is non-negative. With this, we use the same behavior as the construction of GEP addrecs does. (Modulo the fact that we disregard SCEV unification, as the pre-existing FIXME points out). Differential Revision: https://reviews.llvm.org/D90648 |
||
---|---|---|
.. | ||
cannot_fuse.ll | ||
diagnostics_analysis.ll | ||
diagnostics_missed.ll | ||
double_loop_nest_inner_guard.ll | ||
four_loops.ll | ||
guarded.ll | ||
guarded_peel.ll | ||
guarded_unsafeblock_peel.ll | ||
inner_loops.ll | ||
loop_nest.ll | ||
nonadjacent_peel.ll | ||
peel.ll | ||
simple.ll | ||
triple_loop_nest_inner_guard.ll |