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 ffba6fb commit 7cd27b8Copy full SHA for 7cd27b8
llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -292,7 +292,7 @@ bool TargetTransformInfo::hasBranchDivergence(const Function *F) const {
292
}
293
294
bool TargetTransformInfo::isSourceOfDivergence(const Value *V) const {
295
- if (const CallBase *Call = dyn_cast<CallBase>(V)) {
+ if (auto *Call = dyn_cast<CallBase>(V)) {
296
if (Call->hasFnAttr(Attribute::NoDivergenceSource))
297
return false;
298
0 commit comments