[llvm-commits] [llvm] r158259 - in /llvm/trunk: lib/Target/PowerPC/PPCTargetMachine.cpp test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll

Hal Finkel hfinkel at anl.gov
Sat Jun 9 16:53:44 PDT 2012


On Sat, 09 Jun 2012 10:26:03 -0700
Chris Lattner <clattner at apple.com> wrote:

> 
> On Jun 8, 2012, at 8:14 PM, Hal Finkel wrote:
> 
> > Author: hfinkel
> > Date: Fri Jun  8 22:14:50 2012
> > New Revision: 158259
> > 
> > URL: http://llvm.org/viewvc/llvm-project?rev=158259&view=rev
> > Log:
> > Enable tail merging on PPC.
> 
> Very nice!  Does this make setEnableTailMerge dead now?  If so,
> please remove it.

It seems almost dead. CodeGen/IfConversion.cpp:412 constructs a
branch-folding instance setting it to false.

>   if (MadeChange && IfCvtBranchFold) {
>     BranchFolder BF(false, false);
>     BF.OptimizeFunction(MF, TII,
>                         MF.getTarget().getRegisterInfo(),
>                         getAnalysisIfAvailable<MachineModuleInfo>());
>   }

Thanks again,
Hal

> 
> -Chris
> 



-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list