Skip to content

Commit 1cbaf83

Browse files
committed
- Use constexpr instead of const
1 parent 9affc3a commit 1cbaf83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BarrierLatency : public ScheduleDAGMutation {
3333
};
3434

3535
void BarrierLatency::apply(ScheduleDAGInstrs *DAG) {
36-
const unsigned SyntheticLatency = 2000;
36+
constexpr unsigned SyntheticLatency = 2000;
3737
for (SUnit &SU : DAG->SUnits) {
3838
const MachineInstr *MI = SU.getInstr();
3939
if (MI->getOpcode() != AMDGPU::ATOMIC_FENCE)

0 commit comments

Comments
 (0)