Skip to content

Commit 195ce35

Browse files
committed
[AMDGPU] Update for comments.
1 parent 90bcf6b commit 195ce35

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ void GCNSubtarget::overridePostRASchedPolicy(MachineSchedPolicy &Policy,
359359
Policy.OnlyBottomUp = false;
360360
} else {
361361
DiagnosticInfoOptimizationFailure Diag(
362-
F, F.getSubprogram(),
363-
Twine("invalid value for postRa direction attribute: '") +
364-
PostRADirectionStr);
362+
F, F.getSubprogram(), "invalid value for postRA direction attribute");
365363
F.getContext().diagnose(Diag);
366364
}
367365

llvm/test/CodeGen/AMDGPU/postra-sched-attribute.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define float @postra-sched-bidirectional(float %input) nounwind #2 {
2222
}
2323

2424
; CHECK: Post-MI-sched direction (postra-sched-warning): topdown
25-
; WARNING: invalid value for postRa direction attribute
25+
; WARNING: invalid value for postRA direction attribute
2626
define float @postra-sched-warning(float %input) nounwind #3 {
2727
%x = fsub float %input, 1.000000e+00
2828
ret float %x

0 commit comments

Comments
 (0)