[PATCH] Disable passes on optnone functions

Robinson, Paul Paul_Robinson at playstation.sony.com
Wed Feb 26 18:21:47 PST 2014


This patch disables a number of Machine Function Passes for functions
with the 'optnone' attribute.

To come up with the list of passes, I looked at CodeGen/Passes.cpp,
and disabled whatever would be excluded under CodeGenOpt::None.
Except, I did not disable anything listed in addOptimizedRegAlloc(),
as I can't see how to substitute one RA pass sequence for another on
a per-function basis.  Maybe there's a way to deal with that safely,
but for now it seemed prudent (and not horribly harmful to the goals
of 'optnone') to leave well enough alone.
If anybody has an idea, we're open to it.
Thanks,
--paulr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-optnone-CG-Passes.patch
Type: application/octet-stream
Size: 9703 bytes
Desc: 2-optnone-CG-Passes.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140227/c6bd34cb/attachment.obj>


More information about the llvm-commits mailing list