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 | 47a31a29c58608cf1c2940240744fb6eac560dba (patch) | |
tree | d2679b7792f87f952d04f91baf4a93b0f5c19f4a /llvm/lib/Target | |
parent | 4a50e68b65d6e4f0e7fceae1111e630726e2c12c (diff) | |
download | bcm5719-llvm-47a31a29c58608cf1c2940240744fb6eac560dba.tar.gz bcm5719-llvm-47a31a29c58608cf1c2940240744fb6eac560dba.zip |
Fix function alignment at -Os on x86 to be 1, not 2. getFunctionAlignment
returns a log2 value.
llvm-svn: 79293
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index e3fce7961c1..cb5a74fa40f 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/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; } //===----------------------------------------------------------------------===// |