[llvm-commits] [llvm] r103990 - in /llvm/trunk/lib: CodeGen/SelectionDAG/SelectionDAGISel.cpp Target/TargetMachine.cpp

Bill Wendling wendling at apple.com
Tue May 18 14:48:44 PDT 2010


Good point. Fixed in r104066.

Thanks!
-bw

On May 17, 2010, at 11:42 PM, Duncan Sands wrote:

> Hi Bill,
> 
>> - Change the logic DisableFramePointerElim() to check for the
>>   -disable-non-leaf-fp-elim before -disable-fp-elim.
> 
> doesn't this mean that if you specify both -disable-non-leaf-fp-elim
> and -disable-fp-elim, then the frame pointer is eliminated for leaf
> functions?  That's surely wrong since the user set -disable-fp-elim.
> 
> Ciao,
> 
> Duncan.
> 
>>    bool DisableFramePointerElim(const MachineFunction&MF) {
>> -    if (NoFramePointerElim)
>> -      return true;
>> +    // Check to see if we should eliminate non-leaf frame pointers and then
>> +    // check to see if we should eliminate all frame pointers.
>>      if (NoFramePointerElimNonLeaf) {
>>        const MachineFrameInfo *MFI = MF.getFrameInfo();
>>        return MFI->hasCalls();
>>      }
>> -    return false;
>> +
>> +    return NoFramePointerElim;
>>    }
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list