Fix function alignment at -Os on x86 to be 1, not 2. getFunctionAlignment
returns a log2 value. llvm-svn: 79293
This commit is contained in:
parent
4a50e68b65
commit
47a31a29c5
|
@ -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;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue