> 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?
I don't think llc does non-trivial dead code elimination (though I could be
wrong). Did you mean "opt"?
Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
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?
> 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
Ok,
I'm trying to get llvm to decide when to turn the multiplier "on" and "off" for an ARM simulator. These instructions are just to let the simulator know when to power on/off the multiplier. I need to insert an instruction before the first multiply and another one after the last multiply in a basic block. I'm currently trying to figure out the best way to do that without having to add a new instruction to llvm.