diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-13 20:11:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-13 20:11:06 +0000 |
commit | c9dcf289557017742fb507f985b3bf9f44982031 (patch) | |
tree | 8daf5150c9bf8e0c7ee76185962aaa69e11fd9c2 /lib/Target/PowerPC/PPCHazardRecognizers.cpp | |
parent | 759bfd09345786b70783bb58392e3201ba8b55d2 (diff) |
teach the g5 hazard recognizer about update loads. This fixes
Ptrdist/anagram among others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCHazardRecognizers.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCHazardRecognizers.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/lib/Target/PowerPC/PPCHazardRecognizers.cpp index 43caf6c818..32ef68a22b 100644 --- a/lib/Target/PowerPC/PPCHazardRecognizers.cpp +++ b/lib/Target/PowerPC/PPCHazardRecognizers.cpp @@ -168,30 +168,29 @@ getHazardType(SDNode *Node) { unsigned LoadSize; switch (Opcode) { default: assert(0 && "Unknown load!"); - case PPC::LBZ: + case PPC::LBZ: case PPC::LBZU: case PPC::LBZX: - case PPC::LBZ8: + case PPC::LBZ8: case PPC::LBZU8: case PPC::LBZX8: case PPC::LVEBX: LoadSize = 1; break; - case PPC::LHA: + case PPC::LHA: case PPC::LHAU: case PPC::LHAX: - case PPC::LHZ: + case PPC::LHZ: case PPC::LHZU: case PPC::LHZX: case PPC::LVEHX: case PPC::LHBRX: - case PPC::LHA8: + case PPC::LHA8: case PPC::LHAU8: case PPC::LHAX8: - case PPC::LHZ8: + case PPC::LHZ8: case PPC::LHZU8: case PPC::LHZX8: LoadSize = 2; break; - case PPC::LFS: + case PPC::LFS: case PPC::LFSU: case PPC::LFSX: - case PPC::LWZ: + case PPC::LWZ: case PPC::LWZU: case PPC::LWZX: - case PPC::LWZU: case PPC::LWA: case PPC::LWAX: case PPC::LVEWX: @@ -200,9 +199,9 @@ getHazardType(SDNode *Node) { case PPC::LWZX8: LoadSize = 4; break; - case PPC::LFD: + case PPC::LFD: case PPC::LFDU: case PPC::LFDX: - case PPC::LD: + case PPC::LD: case PPC::LDU: case PPC::LDX: LoadSize = 8; break; |