PPC preferred loop alignment is 16.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 6 Jun 2008 19:50:46 +0000 (19:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 6 Jun 2008 19:50:46 +0000 (19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index f528143a8ba4a88fcb265a21b060134527367500..10256e7ded38aee1cf8d6be08cf206e0c630f206 100644 (file)
@@ -363,6 +363,9 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
   }
 
   computeRegisterProperties();
+
+  // Perferred loop alignment is 16.
+  setPrefLoopAlignment(16);
 }
 
 /// getByValTypeAlignment - Return the desired alignment for ByVal aggregate