We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c39bf4 commit 0164a79Copy full SHA for 0164a79
IGC/AdaptorCommon/RayTracing/MergeAllocas.cpp
@@ -121,16 +121,8 @@ AllocationBasedLivenessAnalysis::LivenessData* AllocationBasedLivenessAnalysis::
121
case Instruction::Call:
122
{
123
auto* callI = cast<CallInst>(II);
124
- if (auto* fn = callI->getCalledFunction())
125
- {
126
- if (!fn->getArg(use->getOperandNo())->hasAttribute(llvm::Attribute::NoCapture))
127
- hasNoLifetimeEnd = true;
128
- }
129
- else
130
131
- // TODO: can indirect calls somehow pass nocapture?
+ if (!callI->doesNotCapture(use->getOperandNo()))
132
hasNoLifetimeEnd = true;
133
134
}
135
break;
136
default:
0 commit comments