[llvm-bugs] [Bug 36404] New: Conditionalize code gen based on hotness/coldness

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 15 15:45:56 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36404

            Bug ID: 36404
           Summary: Conditionalize code gen based on hotness/coldness
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: dave at znu.io
                CC: llvm-bugs at lists.llvm.org

This bug is a followup to discussion in:
  https://reviews.llvm.org/D43201

It would be great if the compiler could conditionalize code gen based on the
hot/cold nature of functions and/or basic blocks. Anecdotally speaking (from my
experience at Apple), improving overall code density tends to improve overall
system performance. That being said, microbenchmarks sometimes suffer.

It would be great if LLVM could optimize for "reasonable size" (i.e. not
micro-coded; a.k.a. -Os not -Oz) by default and then switch to throughput
optimized code gen when evidence suggests that a "hot path" exists. At best,
evidence can include profile guided optimization and explicit source
attributes; and at worst simple heuristics.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180215/5f9c4d22/attachment.html>


More information about the llvm-bugs mailing list