Skip to content

Commit c578054

Browse files
committed
Remove last para. Un-auto a variable.
1 parent 795bbba commit c578054

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

llvm/docs/LangRef.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ bool TargetTransformInfo::hasBranchDivergence(const Function *F) const {
288288
}
289289

290290
bool 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
}

0 commit comments

Comments
 (0)