Revert r317510 "[InstCombine] Pull shifts through a select plus binop with constant"
authorHans Wennborg <hans@hanshq.net>
Mon, 6 Nov 2017 22:28:02 +0000 (22:28 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 6 Nov 2017 22:28:02 +0000 (22:28 +0000)
commit8c4b10e84a446e97b67a396ab54d5298e924ab74
tree4297d18a29a87c6b81e33c6241cf6869eaa9ee10
parenteffc12dd43c642a84ef9ebaf4c9c3721e5d2c07b
Revert r317510 "[InstCombine] Pull shifts through a select plus binop with constant"

This broke the CodeGen/Hexagon/loop-idiom/pmpy-mod.ll test on a bunch of buildbots.

> This pulls shifts through a select+binop with a constant where the select conditionally executes the binop. We already do this for just the binop, but not with the select.
>
> This can allow us to get the select closer to other selects to enable removing one.
>
> Differential Revision: https://reviews.llvm.org/D39222
>
> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317510 91177308-0d34-0410-b5e6-96231b3b80d8

llvm-svn: 317518
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/shift.ll