Files
archived-llvm/test/Transforms/IndVarSimplify
Hans Wennborg 820848abb4 Merging r278584:
------------------------------------------------------------------------
r278584 | sanjoy | 2016-08-12 17:58:31 -0700 (Fri, 12 Aug 2016) | 15 lines

[IndVars] Ignore (s|z)exts that don't extend the induction variable

`IVVisitor::visitCast` used to have the invariant that if the
instruction it was passed was a sext or zext instruction, the result of
the instruction would be wider than the induction variable.  This is no
longer true after rL275037, so this change teaches `IndVarSimplify` s
implementation of `IVVisitor::visitCast` to work with the relaxed
invariant.

A corresponding change to SimplifyIndVar to preserve the said invariant
after rL275037 would also work, but given how `IVVisitor::visitCast` is
spelled (no indication of said invariant), I figured the current fix is
cleaner.

Fixes PR28935.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@278685 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-15 17:29:29 +00:00
..
2015-08-06 20:43:41 +00:00
2015-11-05 23:45:38 +00:00
2016-01-17 18:12:52 +00:00
2016-01-19 20:53:51 +00:00
2016-08-15 17:29:29 +00:00
2015-01-15 01:46:09 +00:00