[PATCH] D39976: [AArch64] Consider the cost model when folding loads and stores

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 09:40:09 PST 2017


junbuml added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp:696
+    // ... the new instruction is not more complex than both old ones.
+    if (AUops > 1 || BUops > 1)
+      return NewUops <= (AUops + BUops);
----------------
Can you add more comment why you do this? Is this target independent ? 


https://reviews.llvm.org/D39976





More information about the llvm-commits mailing list