[PATCH] D72916: [JumpThreading] Reduce duplicate threshold at Oz

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 06:24:21 PST 2020


dmgreen added a comment.

My numbers agree that this is a nice improvement (but will be ARM/AArch64 again).



================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:379-380
+  // size.
+  if (!BBDuplicateThreshold.getNumOccurrences() &&
+      F.hasFnAttribute(Attribute::MinSize))
+    BBDupThreshold = 3;
----------------
Can you move the other code for setting up BBDupThreshold here too. There may be multiple functions, some with and some without MinSize.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72916/new/

https://reviews.llvm.org/D72916





More information about the llvm-commits mailing list