[llvm] b115edc - [AMDGPU] Use std::is_same_v. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 07:14:12 PDT 2024
Author: Jay Foad
Date: 2024-07-16T15:14:07+01:00
New Revision: b115edc86c3d6d4e1ebc6546000117a77cf80eab
URL: https://github.com/llvm/llvm-project/commit/b115edc86c3d6d4e1ebc6546000117a77cf80eab
DIFF: https://github.com/llvm/llvm-project/commit/b115edc86c3d6d4e1ebc6546000117a77cf80eab.diff
LOG: [AMDGPU] Use std::is_same_v. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp b/llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
index aebfe154b3139..6dfd8c2ff7716 100644
--- a/llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
@@ -383,7 +383,7 @@ void GCNIterativeScheduler::scheduleRegion(Region &R, Range &&Schedule,
// Schedule consisting of MachineInstr* is considered 'detached'
// and already interleaved with debug values
- if (!std::is_same<decltype(*Schedule.begin()), MachineInstr*>::value) {
+ if (!std::is_same_v<decltype(*Schedule.begin()), MachineInstr*>) {
placeDebugValues();
// Unfortunately placeDebugValues incorrectly modifies RegionEnd, restore
// assert(R.End == RegionEnd);
More information about the llvm-commits
mailing list