[PATCH] D14853: [PPC]: Peephole optimize small accesss to aligned globals.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 16:16:11 PST 2015


echristo added inline comments.

================
Comment at: lib/Target/PowerPC/PPCISelDAGToDAG.cpp:4197-4199
@@ +4196,5 @@
+    // b) optimizing for size.
+    if (PPCSubTarget->hasFusion())
+      if (!MF->getFunction()->optForSize() &&
+          !Base.hasOneUse())
+        continue;
----------------
Looks weird. Feel like collapsing it to a single if conditional?


http://reviews.llvm.org/D14853





More information about the llvm-commits mailing list