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

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 15:24:35 PDT 2016


timshen 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),
----------------
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?


Repository:
  rL LLVM

http://reviews.llvm.org/D21409





More information about the llvm-commits mailing list