[all-commits] [llvm/llvm-project] cd9236: Account for inline assembly instructions in inlini...
Rahman Lavaee via All-commits
all-commits at lists.llvm.org
Wed Jul 9 10:48:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cd9236d78833a3f312d0a38e53e3f12e9926bcf3
https://github.com/llvm/llvm-project/commit/cd9236d78833a3f312d0a38e53e3f12e9926bcf3
Author: Rahman Lavaee <rahmanl at google.com>
Date: 2025-07-09 (Wed, 09 Jul 2025)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
A llvm/test/Transforms/Inline/inline-call-with-asm-call.ll
Log Message:
-----------
Account for inline assembly instructions in inlining cost. (#146628)
Inliner currently treats every "call asm" IR instruction as a single
instruction regardless of how many instructions the inline assembly may
contain. This may underestimate the cost of inlining for a callee
containing long inline assembly. Besides, we may need to assign a higher
cost to instructions in inline assembly since they cannot be analyzed
and optimized by the compiler.
This PR introduces a new option `-inline-asm-instr-cost` -- set zero by
default, which can control the cost of inline assembly instructions in
inliner's cost-benefit analysis.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list