[PATCH] D149418: [ValueTracking] Add additional cases for `isKnownNonZero(mul X, Y)`
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 29 10:24:24 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2884
+
break;
}
----------------
Similar to the add case, we should compute mul known bits here based on the already computed XKnown/YKnown, rather than computing them again via the fallback.
I think just using KnownBits::mul should be enough, as the NSW case handled by computeKnownBitsMul is already handled better above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149418/new/
https://reviews.llvm.org/D149418
More information about the llvm-commits
mailing list