[LLVMdev] MachineLoopInfo Analysis Not Done

Owen Anderson resistor at mac.com
Thu Dec 6 20:05:10 PST 2007


Fixed now!

--Owen

On Dec 6, 2007, at 9:30 PM, Chris Lattner wrote:

>
> On Dec 6, 2007, at 5:56 PM, Bill Wendling wrote:
>
>> I'm trying to create the Machine LICM pass and I have this defined:
>>
>> But when I go to use it:
>>
>> bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
>>   ...
>>   // Get our Loop information...
>>   LI = &getAnalysis<MachineLoopInfo>();
>>   ...
>>   for (MachineLoopInfo::iterator
>>      I = LI->begin(), E = LI->end(); I != E; ++I) {
>>     ...
>>
>> it doesn't execute the loop. In fact, the analysis is never ran. How
>> do I force it to be run?
>
> Maybe this is because it has runOnFunction disabled?:
>
> class MachineLoopInfo : public MachineFunctionPass {
> ...
>   bool runOnFunction(Function& F) { return false; }
>
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071206/d8cd5771/attachment.bin>


More information about the llvm-dev mailing list