Revert "[SCEV] Add nuw/nsw to mul ops in StrengthenNoWrapFlags"
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 19 Jun 2018 04:09:44 +0000 (04:09 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 19 Jun 2018 04:09:44 +0000 (04:09 +0000)
commit6e9b355cc9cd50da901a164f930fe1802b673969
tree3500a6dadf5427c1a12b15442ff97591bd7820e9
parent46c0b368d696744abdefeab23bb1f44179b8d2e4
Revert "[SCEV] Add nuw/nsw to mul ops in StrengthenNoWrapFlags"

This reverts r334428.  It incorrectly marks some multiplications as nuw.  Tim
Shen is working on a proper fix.

Original commit message:

[SCEV] Add nuw/nsw to mul ops in StrengthenNoWrapFlags where safe.

Summary:
Previously we would add them for adds, but not multiplies.

llvm-svn: 335016
16 files changed:
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/Delinearization/a.ll
llvm/test/Analysis/Delinearization/iv_times_constant_in_subscript.ll
llvm/test/Analysis/IVUsers/quadradic-exit-value.ll
llvm/test/Analysis/LoopAccessAnalysis/number-of-memchecks.ll
llvm/test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll
llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll
llvm/test/Analysis/ScalarEvolution/mul-nuw.ll [deleted file]
llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll
llvm/test/Analysis/ScalarEvolution/nsw-offset.ll
llvm/test/Analysis/ScalarEvolution/nsw.ll
llvm/test/Analysis/ScalarEvolution/sext-mul.ll
llvm/test/Analysis/ScalarEvolution/sext-zero.ll
llvm/test/Analysis/ScalarEvolution/trip-count-pow2.ll
llvm/test/Analysis/ScalarEvolution/zext-mul.ll
llvm/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll