diff options
author | Justin Lebar <jlebar@google.com> | 2018-06-11 18:57:42 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2018-06-11 18:57:42 +0000 |
commit | aa4fec94d8a143c3487a45c2472a5d77325dd02c (patch) | |
tree | 5a34b1d192b2f9e1701cab9eb3c1baa87602f64b /llvm/test/Analysis/IVUsers/quadradic-exit-value.ll | |
parent | 7b4656c1d378879c262958c2e88329da0c111b1b (diff) | |
download | bcm5719-llvm-aa4fec94d8a143c3487a45c2472a5d77325dd02c.tar.gz bcm5719-llvm-aa4fec94d8a143c3487a45c2472a5d77325dd02c.zip |
[SCEV] Add nuw/nsw to mul ops in StrengthenNoWrapFlags where safe.
Summary:
Previously we would add them for adds, but not multiplies.
Reviewers: sanjoy
Subscribers: llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D48038
llvm-svn: 334428
Diffstat (limited to 'llvm/test/Analysis/IVUsers/quadradic-exit-value.ll')
-rw-r--r-- | llvm/test/Analysis/IVUsers/quadradic-exit-value.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll b/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll index afc21519821..1597bfa8a37 100644 --- a/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll +++ b/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll @@ -70,7 +70,7 @@ exit: ; sure they aren't marked as post-inc users. ; ; CHECK-LABEL: IV Users for loop %test2.loop -; CHECK-NO-LCSSA: %sub.cond.us = ((-1 * %sub.us)<nsw> + {0,+,1}<nuw><nsw><%test2.loop>) (post-inc with loop %test2.loop) in %sext.us = mul i32 %mul.us, %sub.cond.us +; CHECK-NO-LCSSA: %sub.cond.us = ((-1 * %sub.us)<nuw><nsw> + {0,+,1}<nuw><nsw><%test2.loop>) (post-inc with loop %test2.loop) in %sext.us = mul i32 %mul.us, %sub.cond.us define i32 @test2() { entry: br label %test2.loop |