Revert earlier change removing setPreservesCFG from instcombine (r221223) and
authorMark Heffernan <meheff@google.com>
Tue, 4 Nov 2014 23:02:09 +0000 (23:02 +0000)
committerMark Heffernan <meheff@google.com>
Tue, 4 Nov 2014 23:02:09 +0000 (23:02 +0000)
commitffb62b7e7775c4dc2ab38cd3497a93abbd20f1cd
tree0304746e10b6ad7f3c7a37a634753ee54c005833
parent6612e3aedaf0e8525e53a4762d143b9ebb0059eb
Revert earlier change removing setPreservesCFG from instcombine (r221223) and
change LoopSimplifyPass to be !isCFGOnly.  The motivation for the earlier patch
(r221223) was that LoopSimplify is not preserved by instcombine though
setPreservesCFG indicates that it is.  This change fixes the issue
by making setPreservesCFG no longer imply LoopSimplifyPass, and is therefore less
invasive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221311 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Utils/LoopSimplify.cpp