[PATCH] D142832: [ValueTracking] Add support in `isKnownNonZero` for dominating condition from `X > C1 && X < C2`
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 29 00:50:31 PST 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:2826
+ // both lose information and de-canonicalize the (A < C1 && A > C2) case
+ if (!Cmp.isAssumedTrue(/*OneUse*/ true)) {
+ const SimplifyQuery Q = SQ.getWithInstruction(&Cmp);
----------------
What is the motivating test case for this? And what information are we losing? This looks very dubious.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142832/new/
https://reviews.llvm.org/D142832
More information about the llvm-commits
mailing list