[all-commits] [llvm/llvm-project] b48450: [MergeFuncs] Use sizeWithoutDebug to decide if we ...
Oskar Wirga via All-commits
all-commits at lists.llvm.org
Wed Oct 11 17:32:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b48450c2094fa48d3d968536876fa684eb21f330
https://github.com/llvm/llvm-project/commit/b48450c2094fa48d3d968536876fa684eb21f330
Author: Oskar Wirga <10386631+oskarwirga at users.noreply.github.com>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M llvm/lib/Transforms/IPO/MergeFunctions.cpp
M llvm/test/Transforms/MergeFunc/mergefunc-preserve-debug-info.ll
A llvm/test/Transforms/MergeFunc/no-merge-debug-thunks.ll
Log Message:
-----------
[MergeFuncs] Use sizeWithoutDebug to decide if we create a thunk (#68627)
I noticed that when we determine the size of the function to figure out
if its profitable, we include debug instructions which can end up making
larger functions than necessary.
More information about the All-commits
mailing list