[llvm-branch-commits] [llvm] InferAddressSpaces: Handle llvm.is.constant (PR #102010)
Thorsten Schütt via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 5 10:16:05 PDT 2024
================
@@ -429,6 +430,15 @@ void InferAddressSpacesImpl::collectRewritableIntrinsicOperands(
appendsFlatAddressExpressionToPostorderStack(II->getArgOperand(0),
PostorderStack, Visited);
break;
+ case Intrinsic::is_constant: {
+ Value *Ptr = II->getArgOperand(0);
+ if (Ptr->getType()->isPtrOrPtrVectorTy()) {
+ appendsFlatAddressExpressionToPostorderStack(Ptr, PostorderStack,
+ Visited);
+ }
----------------
tschuett wrote:
How could it hurt readability?
https://github.com/llvm/llvm-project/pull/102010
More information about the llvm-branch-commits
mailing list