[llvm-commits] [llvm] r152282 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Akira Hatanaka
ahatanaka at mips.com
Wed Mar 7 17:59:33 PST 2012
Author: ahatanak
Date: Wed Mar 7 19:59:33 2012
New Revision: 152282
URL: http://llvm.org/viewvc/llvm-project?rev=152282&view=rev
Log:
Set minimum function alignment to 3 if target is Mips64.
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=152282&r1=152281&r2=152282&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Wed Mar 7 19:59:33 2012
@@ -250,7 +250,7 @@
setTargetDAGCombine(ISD::AND);
setTargetDAGCombine(ISD::OR);
- setMinFunctionAlignment(2);
+ setMinFunctionAlignment(HasMips64 ? 3 : 2);
setStackPointerRegisterToSaveRestore(IsN64 ? Mips::SP_64 : Mips::SP);
computeRegisterProperties();
More information about the llvm-commits
mailing list