File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2088,10 +2088,6 @@ example:
20882088 divergence even if its inputs are uniform. A call with no further information
20892089 would normally be considered a source of divergence; setting this attribute
20902090 on a function means that a call to it is not a source of divergence.
2091-
2092- This is useful where known-name calls are being used as an extension
2093- mechanism for instructions, as for example in `llvm-dialects
2094- <https://github.com/GPUOpen-Drivers/llvm-dialects>`.
20952091``noduplicate``
20962092 This attribute indicates that calls to the function cannot be
20972093 duplicated. A call to a ``noduplicate`` function may be moved
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ bool TargetTransformInfo::hasBranchDivergence(const Function *F) const {
288288}
289289
290290bool TargetTransformInfo::isSourceOfDivergence (const Value *V) const {
291- if (auto Call = dyn_cast<CallBase>(V)) {
291+ if (const CallBase * Call = dyn_cast<CallBase>(V)) {
292292 if (Call->hasFnAttr (Attribute::NoDivergenceSource))
293293 return false ;
294294 }
You can’t perform that action at this time.
0 commit comments