[LLVMbugs] [Bug 12233] dead code elimination does not work
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 10 12:54:57 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12233
Duncan Sands <baldrick at free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |baldrick at free.fr
Resolution| |INVALID
--- Comment #1 from Duncan Sands <baldrick at free.fr> 2012-03-10 14:54:57 CST ---
It would be wrong to remove the function dead_code since it is externally
visible: the object code resulting from compiling optbench.c might be linked
with some other object file that makes use of dead_code. It is only correct
to remove dead_code when doing link-time optimization, i.e. building the final
executable, but you didn't do link-time optimization.
Note that all uses of dead_code (eg calls) are removed by the optimizers, only
the empty function body remains.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list