[SimplifyCFG] Add a workaround to fix PR30188
authorJames Molloy <james.molloy@arm.com>
Wed, 31 Aug 2016 10:46:45 +0000 (10:46 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 31 Aug 2016 10:46:45 +0000 (10:46 +0000)
commit171fdac7ced51500b9cde465afe5b7f8ac832fe1
tree7dbb8af8226ce8f47801bfb4536be94dd5094b45
parent8e69b032e5e13e1f8f9ebd8e1ee20643b6e6bf8b
[SimplifyCFG] Add a workaround to fix PR30188

We're sinking stores, which is a good thing, but in the process creating selects for the store address operand, which SROA/Mem2Reg can't look through, which caused serious regressions.

The real fix is in SROA, which I'll be looking into.

llvm-svn: 280219
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/sink-common-code.ll