generalize a transformation even more: we don't care whether the
authorChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 21:29:45 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 21:29:45 +0000 (21:29 +0000)
commitd2c58366d8d3205f212f026fe373641eebccaebb
treef29e1be9204f79476578dfd4aa8f30d0a3a57145
parent0036e3a4698d947c455e755faafe5c83a9c3b9c6
generalize a transformation even more: we don't care whether the
input the the mul is a zext from bool, just that it is all zeros
other than the low bit.  This fixes some phase ordering issues
that would cause us to miss some xforms in mul.ll when the worklist
is visited differently.

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