projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3451f
)
Tail duplicate indirect branches for PowerPC, too.
author
Bob Wilson
<bob.wilson@apple.com>
Wed, 25 Nov 2009 19:57:14 +0000
(19:57 +0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Wed, 25 Nov 2009 19:57:14 +0000
(19:57 +0000)
With the testcase for pr3120, the "threaded interpreter" runtime decreases
from 1788 to 1413 with this change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89877
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.h
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCInstrInfo.h
b/lib/Target/PowerPC/PPCInstrInfo.h
index bb0dc15a7922217e0c90f2e2231f337cda29dbd2..ab341bd779b40255e86385b0d5c3f952a2375a0c 100644
(file)
--- a/
lib/Target/PowerPC/PPCInstrInfo.h
+++ b/
lib/Target/PowerPC/PPCInstrInfo.h
@@
-151,6
+151,8
@@
public:
/// instruction may be. This returns the maximum number of bytes.
///
virtual unsigned GetInstSizeInBytes(const MachineInstr *MI) const;
+
+ virtual bool isProfitableToDuplicateIndirectBranch() const { return true; }
};
}