[llvm] 96c90a6 - [AMDGPU] Drop unnecessary const from a return type (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 12 23:45:14 PST 2021
Author: Kazu Hirata
Date: 2021-02-12T23:44:32-08:00
New Revision: 96c90a6d14af9dc5383e9854a9c84301a47c308c
URL: https://github.com/llvm/llvm-project/commit/96c90a6d14af9dc5383e9854a9c84301a47c308c
DIFF: https://github.com/llvm/llvm-project/commit/96c90a6d14af9dc5383e9854a9c84301a47c308c.diff
LOG: [AMDGPU] Drop unnecessary const from a return type (NFC)
Identified with readability-const-return-type.
Added:
Modified:
llvm/lib/Target/AMDGPU/GCNRegPressure.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/GCNRegPressure.h b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
index ba8c85aa502b..8541c7e983f7 100644
--- a/llvm/lib/Target/AMDGPU/GCNRegPressure.h
+++ b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
@@ -160,7 +160,7 @@ class GCNDownwardRPTracker : public GCNRPTracker {
public:
GCNDownwardRPTracker(const LiveIntervals &LIS_) : GCNRPTracker(LIS_) {}
- const MachineBasicBlock::const_iterator getNext() const { return NextMI; }
+ MachineBasicBlock::const_iterator getNext() const { return NextMI; }
// Reset tracker to the point before the MI
// filling live regs upon this point using LIS.
More information about the llvm-commits
mailing list