[PATCH] D92071: [PowerPC] support register pressure reduction in machine combiner.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 03:26:26 PST 2021
foad added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:347
+// Try to reassociate FMA with FSUB and a constant like below:
+// C is a floatint point const.
+//
----------------
Typo "floating".
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:362
+// D = FMA A, X, C
+//
+// Before the transformation, A must be assigned with different hardware
----------------
Is it true that these patterns only improve register pressure if X and Y are "live out" of the pattern? Otherwise A could be allocated the same register as X or Y and there would be no increase.
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:365
+// register with D. After the transformation, A and D must be assigned with
+// same hardware register due to TIE attricute of FMA instructions.
+//
----------------
Typo "attribute".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92071/new/
https://reviews.llvm.org/D92071
More information about the llvm-commits
mailing list