]> granicus.if.org Git - llvm/commit
[InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instr...
authorCraig Topper <craig.topper@gmail.com>
Sat, 25 Mar 2017 06:52:52 +0000 (06:52 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 25 Mar 2017 06:52:52 +0000 (06:52 +0000)
commitda174a7f04d0ed16c0f70abdb2922a952a3768e6
tree40d55445a711c1938ac33f27a607eaf0b65b61fb
parentfb5242baa3d6825254ae19c3325d411aeccf3848
[InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instruction and operand instead of the Use.

The first thing it did was get the User for the Use to get the instruction back. This requires looking through the Uses for the User using the waymarking walk. That's pretty fast, but its probably still better to just pass the Instruction we already had.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298772 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp