[PATCH] D71946: [PowerPC][LoopVectorize] Extend getRegisterClassForType to consider double and other floating point type
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 13:33:39 PST 2019
nemanjai added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp:597
return ST->hasVSX() ? VSXRC : VRRC;
- else if (Ty && Ty->getScalarType()->isFloatTy())
+ else if (Ty && Ty->getScalarType()->isFloatingPointTy())
return ST->hasVSX() ? VSXRC : FPRRC;
----------------
It seems perfectly reasonable that we want to return VSX/FPR for f32 and f64 types. However, it is not clear to me what we want to do for ppc_fp128, f128, f16, etc.
Don't get me wrong, I think the existing implementation is definitely wrong, I am just wondering if this is a complete solution.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71946/new/
https://reviews.llvm.org/D71946
More information about the llvm-commits
mailing list