[LLVMdev] disable llc optimizations
Jim Grosbach
grosbach at apple.com
Mon Dec 6 11:08:23 PST 2010
On Dec 6, 2010, at 10:57 AM, John Criswell wrote:
> On 12/6/10 11:39 AM, Andrew Lukefahr wrote:
>> Hi,
>>
>> How would I disable dead code elimination in llc? Can that be done via the command line or do I need to modify llc's source?
>
> You can use llc --help-hidden to see a list of options. There are several -disable-xxx options that disable various code generator optimizations.
>
> That said, I, like Duncan, wasn't aware that llc did any dead-code elimination (beyond peephole optimization). Are you sure llc is removing the instructions you care about?
>
Perhaps the dead machine instruction elimination pass? (DeadMachineInstructionElim.cpp) I don't think there's a way to disable that.
-Jim
More information about the llvm-dev
mailing list