Teach instcombine to turn trunc(srl x, c) -> srl (trunc(x), c) when safe.
authorChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:04:07 +0000 (07:04 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:04:07 +0000 (07:04 +0000)
commit6aa5eb19d53795dd026921859350df89b0169dfa
treef6dcfc3c0b11097ad76e2d6515cd078cfad806ca
parent41e21031330eee2c692defac4518704579280a02
Teach instcombine to turn trunc(srl x, c) -> srl (trunc(x), c) when safe.
This implements InstCombine/cast.ll:test34.  It fires hundreds of times on
176.gcc.

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