[llvm] [LV][ValueTracking] Narrow type-promoted reductions using known bits (PR #222183)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 01:41:11 PDT 2026
================
@@ -1906,6 +1907,15 @@ static void computeKnownBitsFromOperator(const Operator *I,
Known.Zero.setLowBits(std::min(Known2.countMinTrailingZeros(),
Known3.countMinTrailingZeros()));
----------------
nikic wrote:
Might make sense to put this code into an `else`? I believe the special or/xor/and implementations are strictly better.
https://github.com/llvm/llvm-project/pull/222183
More information about the llvm-commits
mailing list