aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-06 19:50:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-06 19:50:46 +0000
commit6b4a65f4e7a668815593eb9dea2b994eaad70a86 (patch)
treee200f31ebc14448cb19cb24b7e2274832f28b9d7
parent4c37c07ee3bfacaaf90ea57165ef6855b4ed8b22 (diff)
downloadexternal_llvm-6b4a65f4e7a668815593eb9dea2b994eaad70a86.tar.gz
external_llvm-6b4a65f4e7a668815593eb9dea2b994eaad70a86.tar.bz2
external_llvm-6b4a65f4e7a668815593eb9dea2b994eaad70a86.zip
PPC preferred loop alignment is 16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52056 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index f528143a8b..10256e7ded 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -363,6 +363,9 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
}
computeRegisterProperties();
+
+ // Perferred loop alignment is 16.
+ setPrefLoopAlignment(16);
}
/// getByValTypeAlignment - Return the desired alignment for ByVal aggregate