summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index f528143a8ba..10256e7ded3 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud