[llvm-bugs] [Bug 43324] New: Adding "minsize" attribute to function increases size of opt output 15 times
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 16 04:29:13 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43324
Bug ID: 43324
Summary: Adding "minsize" attribute to function increases size
of opt output 15 times
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: mikael.holmen at ericsson.com
CC: llvm-bugs at lists.llvm.org
If we run opt like this:
opt -disable-basicaa -licm -loop-unroll -O1 -unroll-threshold=0 -o
bbi-32266_2.opt.bc bbi-32266_2.ll
and check the size of the output bbi-32266_2.opt.bc I get
-rw-r--r-- 1 uabelho eusers 203308 sep 16 13:09 bbi-32266_2.opt.bc
Then, if I just add a "minsize" attribute to function main in the input
and run opt the same way, I instead get this output:
-rw-r--r-- 1 uabelho eusers 3177960 sep 16 13:12 ./bbi-32266_2.opt.bc
So, adding "minsize" makes the size of the program increase around 15 times.
--
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/20190916/32156930/attachment.html>
More information about the llvm-bugs
mailing list