[llvm-commits] [llvm] r111285 - in /llvm/trunk/lib/CodeGen: LiveIntervalAnalysis.cpp PHIElimination.cpp PHIElimination.h
evan.cheng at apple.com
Tue Aug 17 14:47:05 PDT 2010
On Aug 17, 2010, at 2:11 PM, Jakob Stoklund Olesen wrote:
> On Aug 17, 2010, at 2:00 PM, Evan Cheng wrote:
>> Author: evancheng
>> Date: Tue Aug 17 16:00:37 2010
>> New Revision: 111285
>> URL: http://llvm.org/viewvc/llvm-project?rev=111285&view=rev
>> PHI elimination shouldn't require machineloopinfo since it's used at -O0. Move the requirement to LiveIntervalAnalysis instead. Note this does not change the number of times machineloopinfo is computed.
> Note that both SimpleRegisterCoalescing and CalcSpillWeights require LoopInfo, so you may be able to get away with only AU.addPreserved<MachineLoopInfo>() in LiveIntervalAnalysis.
That's what I thought at first but it didn't work as expected.
> Does this mean that we are only calculating LoopInfo once now? That's awesome.
No. Tail duplication and if-conversion are not preserving it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits