Align functions to 16-byte boundaries, to eliminate noise in performance measurements. This improves the performance of 'treeadd' by about 20% with the dag
isel, restoring it to the pattern-isel level (which happens to get the alignment right).
llvm-svn: 23194
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index d68b740..c81bad3 100644
--- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -384,7 +384,7 @@
// Print out labels for the function.
O << "\t.text\n";
- emitAlignment(2);
+ emitAlignment(4);
O << "\t.globl\t" << CurrentFnName << "\n";
O << CurrentFnName << ":\n";