[SCEVExpander] Have hoistIVInc preserve LCSSA
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 8 Dec 2015 00:13:17 +0000 (00:13 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 8 Dec 2015 00:13:17 +0000 (00:13 +0000)
commit51d40aea3b6e74dea4b3c6680f00921441a30522
treee066f96e57c5d2acb48d103717c3c63d5e445aca
parentc11338cf10a01b70961536250358b0dc6ebd4438
[SCEVExpander] Have hoistIVInc preserve LCSSA

Summary:
(Note: the problematic invocation of hoistIVInc that caused PR24804 came
from IndVarSimplify, not from SCEVExpander itself)

Fixes PR24804.  Test case by David Majnemer.

Reviewers: hfinkel, majnemer, atrick, mzolotukhin

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D15058

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254976 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopInfo.h
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/IndVarSimplify/pr24804.ll [new file with mode: 0644]