[SDAG] SimplifyDemandedBits - generalize fold for 2 LSB of X*X
authorSanjay Patel <spatel@rotateright.com>
Mon, 7 Feb 2022 20:22:08 +0000 (15:22 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 7 Feb 2022 20:38:50 +0000 (15:38 -0500)
commitfc6bee1c11d4aa2fc591a9272edbe01dd18a650f
tree795c8cbc3b80bdd56f730e0979174571120dd3d1
parente4e671c54fe402c72d337961b0662e4595994efb
[SDAG] SimplifyDemandedBits - generalize fold for 2 LSB of X*X

This is translated from recent changes to the IR version of this function:
D119060
D119139
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/AArch64/combine-mul.ll