[llvm-commits] [llvm] r142224 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Hal Finkel hfinkel at anl.gov
Mon Oct 17 11:53:03 PDT 2011


Author: hfinkel
Date: Mon Oct 17 13:53:03 2011
New Revision: 142224

URL: http://llvm.org/viewvc/llvm-project?rev=142224&view=rev
Log:
Revert change to function alignment b/c existing logic was fine

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=142224&r1=142223&r2=142224&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Mon Oct 17 13:53:03 2011
@@ -402,16 +402,9 @@
     setLibcallName(RTLIB::EXP2_PPCF128, "exp2l$LDBL128");
   }
 
-  if (PPCSubTarget.isBookE()) {
-    // Book E: Instructions are always four bytes long and word-aligned.
-    setMinFunctionAlignment(4);
-    setPrefFunctionAlignment(8);
-  }
-  else {
-    setMinFunctionAlignment(2);
-    if (PPCSubTarget.isDarwin())
-      setPrefFunctionAlignment(4);
-  }
+  setMinFunctionAlignment(2);
+  if (PPCSubTarget.isDarwin())
+    setPrefFunctionAlignment(4);
 
   setInsertFencesForAtomic(true);
 





More information about the llvm-commits mailing list