[llvm] [AArch64][GlobalISel] Look into array's element (PR #74109)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 03:28:29 PST 2023
================
@@ -621,6 +621,13 @@ bool AArch64RegisterBankInfo::isLoadFromFPType(const MachineInstr &MI) const {
Type *EltTy = nullptr;
if (const GlobalValue *GV = dyn_cast<GlobalValue>(LdVal)) {
EltTy = GV->getValueType();
+ // Look at the first element of the struct to determine its type
+ while (StructType *StructEltTy = dyn_cast<StructType>(EltTy)) {
----------------
davemgreen wrote:
This doesn't need brackets if it is a single statement.
https://github.com/llvm/llvm-project/pull/74109
More information about the llvm-commits
mailing list