diff options
author | Rahman Lavaee <rahmanl@google.com> | 2025-07-09 10:48:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-09 10:48:07 -0700 |
commit | cd9236d78833a3f312d0a38e53e3f12e9926bcf3 (patch) | |
tree | 934d91b9164e39f823a8f111c76a512e9fa490f7 /lldb/source/Commands | |
parent | a63846b475bacfda49eb00016e0dc43c9ab1aa7d (diff) | |
download | llvm-cd9236d78833a3f312d0a38e53e3f12e9926bcf3.zip llvm-cd9236d78833a3f312d0a38e53e3f12e9926bcf3.tar.gz llvm-cd9236d78833a3f312d0a38e53e3f12e9926bcf3.tar.bz2 |
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.
Diffstat (limited to 'lldb/source/Commands')
0 files changed, 0 insertions, 0 deletions