[PATCH] Revert "[SCEV] add no wrap flag for SCEVAddExpr."
authorTim Northover <tnorthover@apple.com>
Mon, 30 Sep 2019 07:46:52 +0000 (07:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 7 Jul 2020 16:18:00 +0000 (17:18 +0100)
commite406984a26c0b4e225775ff0d916a55e07212a40
treee0b362fa94b39cf0b745d59bab3f1e5d1cbd8b32
parenta311c17e125bcfbaec1da3035ef719397ef3ce54
[PATCH] Revert "[SCEV] add no wrap flag for SCEVAddExpr."

This reverts r366419 because the analysis performed is within the context of
the loop and it's only valid to add wrapping flags to "global" expressions if
they're always correct.

llvm-svn: 373184
(cherry picked from commit 58e8c793d0e43150a6452e971a32d7407a8a7401)

Gbp-Pq: Name 373184.patch
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/limit-depth.ll
llvm/test/Analysis/ScalarEvolution/nsw.ll
llvm/test/Analysis/ScalarEvolution/trip-count12.ll
llvm/test/Analysis/ScalarEvolution/trip-count9.ll