[PATCH] D87034: [KnownBits] Implement accurate unsigned and signed max and min
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 14:07:28 PDT 2020
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:3431
Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
if (Known.isUnknown()) break; // Early-out
Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
----------------
nikic wrote:
> Maybe drop this early return. Even if one operand is unknown we can determine something here.
Yes, well spotted, but I am planning to do that in a separate patch because it affects some codegen tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87034/new/
https://reviews.llvm.org/D87034
More information about the llvm-commits
mailing list