Teach ScalarEvolution to consider loop preheaders in the search for
authorDan Gohman <gohman@apple.com>
Mon, 15 Sep 2008 22:18:04 +0000 (22:18 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 15 Sep 2008 22:18:04 +0000 (22:18 +0000)
commitfd6edef87b66c1c9bdef1ac562e13e59b9cd851a
tree0254d2378094a9d4df48aeb0ef661ddf3eb22859
parent99500aeb7c9a05db57e228544a3f81de2faf24ef
Teach ScalarEvolution to consider loop preheaders in the search for
an if statement that guards a loop, to allow indvars to avoid smax
operations in more situations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56232 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/avoid-smax-0.ll [new file with mode: 0644]
test/Analysis/ScalarEvolution/avoid-smax-1.ll [new file with mode: 0644]
test/Analysis/ScalarEvolution/avoid-smax.ll [deleted file]