[PATCH] D66762: DAG: computeNumSignBits for MUL
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 11:41:41 PDT 2019
arsenm marked an inline comment as done.
arsenm added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAG.cpp:3723
+ unsigned SignBitsOp0 = ComputeNumSignBits(Op.getOperand(0), Depth + 1);
+ if (SignBitsOp0 == 1)
+ break;
----------------
lebedev.ri wrote:
> `1` is a magic 'i-dont-know', right? I wonder why it's not `-1`,
> that one you certainly can't ever get normally, unlike `1` (`INT_MIN`)
> (Well, yeah, or `Optional<unsigned>`)
There is always the sign bit itself, so any uses should naturally do the right thing from that.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66762/new/
https://reviews.llvm.org/D66762
More information about the llvm-commits
mailing list