Generalize getExtendAddRecStart to work with both sign and zero
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 18 Feb 2015 01:47:07 +0000 (01:47 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 18 Feb 2015 01:47:07 +0000 (01:47 +0000)
commit00af5b5d503f4838078f50b01224946fd1734530
tree24a594a621143c72fd98e7374484f59a5a20c016
parent4f1b92cecef1d599a131081af2b343e89efdc426
Generalize getExtendAddRecStart to work with both sign and zero
extensions.

This change also removes `DEBUG(dbgs() << "SCEV: untested prestart
overflow check\n");` because that case has a unit test now.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll [new file with mode: 0644]