[llvm] InferAddressSpaces: Handle llvm.is.constant (PR #102010)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 23:44:02 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);
+ }
----------------
arsenm wrote:
This rule is so open ended it's useless. If clang-format doesn't do this, it's not a rule. I'm not wasting more CI cycles to touch this
https://github.com/llvm/llvm-project/pull/102010
More information about the llvm-commits
mailing list