[llvm] [AMDGPU] Allocate i1 argument to SGPRs (PR #72461)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 18:59:33 PST 2023
================
@@ -29,6 +29,39 @@
using namespace llvm;
+static bool CC_AMDGPU_Custom_I1(unsigned ValNo, MVT ValVT, MVT LocVT,
+ CCValAssign::LocInfo LocInfo,
+ ISD::ArgFlagsTy ArgFlags, CCState &State) {
+ static bool IsWave64 = static_cast<const GCNSubtarget &>(
+ State.getMachineFunction().getSubtarget())
----------------
arsenm wrote:
getSubtarget<GCNSubtarget.() is cleaner than using your own static_cast
https://github.com/llvm/llvm-project/pull/72461
More information about the llvm-commits
mailing list