Skip to content

Commit 5ed202c

Browse files
committed
update format
1 parent 1bfbf0b commit 5ed202c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPU.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,8 +2580,7 @@ def UseFakeTrue16Insts : True16PredicateClass<"Subtarget->hasTrue16BitInsts() &&
25802580

25812581
def Has16bitD16HWBug: Predicate<"Subtarget->has16bitD16HWBug()">,
25822582
AssemblerPredicate<(all_of FeatureTrue16BitInsts, FeatureRealTrue16Insts, Feature16bitD16HWBug)>;
2583-
def NotHas16bitD16HWBug: Predicate<"!Subtarget->has16bitD16HWBug()"
2584-
"!Subtarget->has16bitD16HWBug()">,
2583+
def NotHas16bitD16HWBug: Predicate<"!Subtarget->has16bitD16HWBug()">,
25852584
AssemblerPredicate<(all_of FeatureTrue16BitInsts, FeatureRealTrue16Insts, (not Feature16bitD16HWBug))>;
25862585

25872586
def HasBF16TransInsts : Predicate<"Subtarget->hasBF16TransInsts()">,

llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ bool AMDGPUSubtarget::useRealTrue16Insts() const {
3838
return hasTrue16BitInsts() && EnableRealTrue16Insts;
3939
}
4040

41-
bool AMDGPUSubtarget::has16bitD16HWBug() const {
42-
return Enable16bitD16HWBug;
43-
}
41+
bool AMDGPUSubtarget::has16bitD16HWBug() const { return Enable16bitD16HWBug; }
4442

4543
// Returns the maximum per-workgroup LDS allocation size (in bytes) that still
4644
// allows the given function to achieve an occupancy of NWaves waves per

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,8 @@ RegInterval WaitcntBrackets::getRegInterval(const MachineInstr *MI,
847847
Result.second = Result.first + (Size / 16);
848848

849849
if (Size == 16 && Context->ST->has16bitD16HWBug()) {
850-
// Regardless of which lo16/hi16 is used, consider the full 32-bit register used.
850+
// Regardless of which lo16/hi16 is used, consider the full 32-bit
851+
// register used.
851852
if (AMDGPU::isHi16Reg(MCReg, *TRI))
852853
Result.first -= 1;
853854
else

0 commit comments

Comments
 (0)