[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:06:08 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:
multiple lines is not listed as an excuse in the coding style
https://github.com/llvm/llvm-project/pull/102010
More information about the llvm-branch-commits
mailing list