[LLVMbugs] [Bug 623] NEW: request for -malloc2alloca optimization pass
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Aug 30 04:22:38 PDT 2005
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=623
Summary: request for -malloc2alloca optimization pass
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: opt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eric at vanrietpaap.nl
If such an optimization pass would do escape analysis pypy-llvm might be able to
use a lot less malloc. These are currently in pypy-llvm costly becausewe use the
Boehm garbage collector that obviously need to do more that a normal malloc and
free.
Because the actual Boehm malloc is called GC_malloc this would need to be an
alias of malloc. In general it would be nice to be able tell the optimizers
about aliases of known functions (could that be useful for simplify-libcalls
translations, just guessing here). Or maybe this is already possible by
implementing an internal malloc in the .ll file. Not sure here, will have to try
that later.
[If part two makes sence then this enhancement request should have been split]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list