[llvm-commits] [llvm] r89877 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h

Bob Wilson bob.wilson at apple.com
Wed Nov 25 11:57:14 PST 2009


Author: bwilson
Date: Wed Nov 25 13:57:14 2009
New Revision: 89877

URL: http://llvm.org/viewvc/llvm-project?rev=89877&view=rev
Log:
Tail duplicate indirect branches for PowerPC, too.
With the testcase for pr3120, the "threaded interpreter" runtime decreases
from 1788 to 1413 with this change.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h?rev=89877&r1=89876&r2=89877&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.h Wed Nov 25 13:57:14 2009
@@ -151,6 +151,8 @@
   /// instruction may be.  This returns the maximum number of bytes.
   ///
   virtual unsigned GetInstSizeInBytes(const MachineInstr *MI) const;
+
+  virtual bool isProfitableToDuplicateIndirectBranch() const { return true; }
 };
 
 }





More information about the llvm-commits mailing list