[PATCH] D44528: [PowerPC] Implement canCombineStoreAndExtract and provide the missing codegen patterns
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 25 00:28:11 PDT 2018
steven.zhang added inline comments.
================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:14307
+ // Only have combined stores for sub-word types on Power9.
+ if (BitWidth > 32 || (!Subtarget.hasP9Vector() && BitWidth != 32))
+ return false;
----------------
I didn't take deep look at the implementation for this patch. The condition here seems not quite align with the comments. If the bitwidth is 32bit, we will combine the store and extract no matter if it is Power9 or not. I am not sure if this is by intention.
Repository:
rL LLVM
https://reviews.llvm.org/D44528
More information about the llvm-commits
mailing list