[LLVMdev] disabling combining load/stores in optimizer.

Chris Lattner clattner at apple.com
Mon Aug 3 16:01:00 PDT 2009


On Aug 3, 2009, at 3:09 PM, Dan Gohman wrote:

>>
>> We are currently doing this, however I think disabling such
>> optimizations is a much better solution.
>
> An LLVM design goal is that backends should be able to outsmart
> instcombine when necessary, rather than having instcombine be able
> to disable parts of itself in order to avoid foiling the backends.
> Practicality sometimes steers elsewhere of course. Please explain
> why you think suppressing this particular optimization is better;
> it isn't obvious how it would look different in the end.

Yeah, I agree.  LegalizeTypes should be able to trivially lower this.

-Chris



More information about the llvm-dev mailing list