[llvm] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 01:21:13 PDT 2023
================
@@ -143,7 +155,7 @@ Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI);
KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth);
-
+ bool MaySimplifyAsConstant = true;
----------------
nikic wrote:
Possibly this flag can be replaced by a isPointerTy check below? This seems like it should also hold for other instructions working on pointers, if we were to handle them.
https://github.com/llvm/llvm-project/pull/67166
More information about the llvm-commits
mailing list