[all-commits] [llvm/llvm-project] 23b760: CodeGenPrepare: Reorder check for cold and shouldO...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Feb 4 11:23:49 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 23b76096b7d9b3a81ebfb1579471329a7d6b9c03
https://github.com/llvm/llvm-project/commit/23b76096b7d9b3a81ebfb1579471329a7d6b9c03
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2020-02-04 (Tue, 04 Feb 2020)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
Log Message:
-----------
CodeGenPrepare: Reorder check for cold and shouldOptimizeForSize
shouldOptimizeForSize is showing up in a profile, spending around 10%
of the pass time in one function. This should probably not be so slow,
but the much cheaper attribute check should be done first anyway.
More information about the All-commits
mailing list