[PATCH] D21409: Emit a swap for STXVD2X when it's emitted by matching a 'store' node

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 01:44:40 PDT 2016

nemanjai added inline comments.

Comment at: lib/Target/PowerPC/PPCInstrVSX.td:940
@@ -939,1 +939,3 @@
           (STXVD2X $rS, xoaddr:$dst)>;
+let Predicates = [IsLittleEndian] in {
+def : Pat<(store v2i64:$rS, xoaddr:$dst),
timshen wrote:
> Without this change, powerpc le stxvd2x still works in most of the cases. Does that mean this line introduces a second code path to handle powerpc le stxvd2x? If so, can we remove the first one?
I am not sure which definitions you're referring to as first and second and what you're suggesting we remove. As you can see above, I've removed the DAG pattern that was part of the instruction definition.



More information about the llvm-commits mailing list