diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-18 00:20:06 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-18 00:20:06 +0000 |
commit | 25103a2617259e23c4736f0114cfd9a416dcbbf1 (patch) | |
tree | 1240e07d9671d1a199cc3e74a29c12991ffcde6e | |
parent | 5cfd4ddece1b73a719830ae84eb74d491f87b9d5 (diff) |
Fix function alignment at -Os on x86 to be 1, not 2. getFunctionAlignment
returns a log2 value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79293 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index e3fce7961c..cb5a74fa40 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1052,7 +1052,7 @@ SDValue X86TargetLowering::getPICJumpTableRelocBase(SDValue Table, /// getFunctionAlignment - Return the Log2 alignment of this function. unsigned X86TargetLowering::getFunctionAlignment(const Function *F) const { - return F->hasFnAttr(Attribute::OptimizeForSize) ? 1 : 4; + return F->hasFnAttr(Attribute::OptimizeForSize) ? 0 : 4; } //===----------------------------------------------------------------------===// |