[PATCH] D37177: [X86] Don't disable slow INC/DEC if optimizing for size

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 11:08:31 PDT 2017


chandlerc added a comment.

I generally like the direction, peanut gallery comment. No need to wait for me to land or anything...



================
Comment at: lib/Target/X86/X86InstrInfo.td:912
   def OptForSpeed  : Predicate<"!MF->getFunction()->optForSize()">;
+  def NotSlowIncDec_Or_OptForSize : Predicate<"!Subtarget->slowIncDec() || "
+                                             "MF->getFunction()->optForSize()">;
----------------
Maybe name this `AvoidIncDec` or `NoIncDec` or `DisableIncDec` or ... rather than explaining the rationale in the name?


https://reviews.llvm.org/D37177





More information about the llvm-commits mailing list