[llvm] e1272ab - [AMDGPU][NFC] Harmonize decl&def of R600TargetLowering::OptimizeSwizzle
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 9 00:08:15 PDT 2022
Author: serge-sans-paille
Date: 2022-07-09T09:07:31+02:00
New Revision: e1272ab6ec8ddb56b87cf0d67bb385c5c850e677
URL: https://github.com/llvm/llvm-project/commit/e1272ab6ec8ddb56b87cf0d67bb385c5c850e677
DIFF: https://github.com/llvm/llvm-project/commit/e1272ab6ec8ddb56b87cf0d67bb385c5c850e677.diff
LOG: [AMDGPU][NFC] Harmonize decl&def of R600TargetLowering::OptimizeSwizzle
The freshly baked -Warray-parameter warning discovered an inconsistency in
argument declaration, use the stricter one.
This fixes build issues like https://lab.llvm.org/buildbot#builders/18/builds/5305
Added:
Modified:
llvm/lib/Target/AMDGPU/R600ISelLowering.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/R600ISelLowering.h b/llvm/lib/Target/AMDGPU/R600ISelLowering.h
index 1e75a0432ec35..9135f778edf06 100644
--- a/llvm/lib/Target/AMDGPU/R600ISelLowering.h
+++ b/llvm/lib/Target/AMDGPU/R600ISelLowering.h
@@ -74,8 +74,8 @@ class R600TargetLowering final : public AMDGPUTargetLowering {
void lowerImplicitParameter(MachineInstr *MI, MachineBasicBlock &BB,
MachineRegisterInfo & MRI, unsigned dword_offset) const;
- SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[], SelectionDAG &DAG,
- const SDLoc &DL) const;
+ SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[4],
+ SelectionDAG &DAG, const SDLoc &DL) const;
SDValue vectorToVerticalVector(SelectionDAG &DAG, SDValue Vector) const;
SDValue lowerFrameIndex(SDValue Op, SelectionDAG &DAG) const;
More information about the llvm-commits
mailing list