[PATCH] D140324: [SDAG] neg x with only low bit demanded is x

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 11:53:22 PST 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:2635
+    // neg x with only low bit demanded is simply x.
+    // add 0, x with only low bit demanded is simply x
+    if (DemandedBits.isOne() &&
----------------
ISD::MUL has a fallthrough into this block. I don't think this is correct for it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140324/new/

https://reviews.llvm.org/D140324



More information about the llvm-commits mailing list