[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
Thu Nov 16 08:54:41 PST 2017


junbuml added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp:697
+  else if (NewLat == (OldALat + OldBLat))
+    return (NewSD->NumMicroOps < (OldASD->NumMicroOps + OldBSD->NumMicroOps));
+
----------------
Why don't we use  <= , instead of < ? 


https://reviews.llvm.org/D39976





More information about the llvm-commits mailing list