aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-12-14 20:00:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-12-14 20:00:08 +0000
commit020f4106f820648fd7e91956859844a80de13974 (patch)
treecdf6a36ab7bed9a0c468813406c2d3403997e886 /include/llvm
parente90ac9bce9aa6de288568df9bf6133c08534ae2f (diff)
downloadexternal_llvm-020f4106f820648fd7e91956859844a80de13974.zip
external_llvm-020f4106f820648fd7e91956859844a80de13974.tar.gz
external_llvm-020f4106f820648fd7e91956859844a80de13974.tar.bz2
Model ARM predicated write as read-mod-write. e.g.
r0 = mov #0 r0 = moveq #1 Then the second instruction has an implicit data dependency on the first instruction. Sadly I have yet to come up with a small test case that demonstrate the post-ra scheduler taking advantage of this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 957a89a..8409229 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -652,9 +652,8 @@ public:
/// a given pair of defs which both target the same register. This is usually
/// one.
virtual unsigned getOutputLatency(const InstrItineraryData *ItinData,
- const MachineInstr *DefMI1,
- const MachineInstr *DefMI2,
- unsigned Reg) const {
+ const MachineInstr *DefMI, unsigned DefIdx,
+ const MachineInstr *DepMI) const {
return 1;
}