[PATCH] D69484: [PowerPC] Relax the restrictions on loading doubles with SPE
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 19:21:11 PST 2019
stefanp requested changes to this revision.
stefanp added a comment.
This revision now requires changes to proceed.
Please add a test case for this.
Maybe an test were we have an SPE load of f64 with a 8 bit offset and one where the offset is larger or perhaps not aligned. Anyway, that's just a suggestion. You probably have a better idea of what you would like to test for this.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:2281
+ && !(imm % EVXEncodingAlignment))
+ return false; // Offset is okay for the 8-bit index
+ Base = N.getOperand(0);
----------------
This section of code looks to be loop invariant. I'm not sure if the intention was to use `UT` or not but if it is invariant you can pull it out of the loop. Basically, if `isIntU8Immediate(N.getOperand(1), imm) && !(imm % EVXEncodingAlignment)` is true then the function can only return false.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69484/new/
https://reviews.llvm.org/D69484
More information about the llvm-commits
mailing list