mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove OptimizeForSize global. Use function attribute optsize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -776,7 +776,7 @@ bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
printVisibility(CurrentFnName, F->getVisibility());
|
||||
|
||||
EmitAlignment(OptimizeForSize ? 2 : 4, F);
|
||||
EmitAlignment(F->hasFnAttr(Attribute::OptimizeForSize) ? 2 : 4, F);
|
||||
O << CurrentFnName << ":\n";
|
||||
|
||||
// Emit pre-function debug information.
|
||||
|
@@ -35,7 +35,6 @@ namespace llvm {
|
||||
Reloc::Model RelocationModel;
|
||||
CodeModel::Model CMModel;
|
||||
bool PerformTailCallOpt;
|
||||
bool OptimizeForSize;
|
||||
unsigned StackAlignment;
|
||||
bool RealignStack;
|
||||
bool VerboseAsm;
|
||||
@@ -134,11 +133,6 @@ EnablePerformTailCallOpt("tailcallopt",
|
||||
cl::desc("Turn on tail call optimization."),
|
||||
cl::location(PerformTailCallOpt),
|
||||
cl::init(false));
|
||||
static cl::opt<bool, true>
|
||||
EnableOptimizeForSize("optimize-size",
|
||||
cl::desc("Optimize for size."),
|
||||
cl::location(OptimizeForSize),
|
||||
cl::init(false));
|
||||
|
||||
static cl::opt<unsigned, true>
|
||||
OverrideStackAlignment("stack-alignment",
|
||||
|
@@ -153,7 +153,7 @@ void X86ATTAsmPrinter::emitFunctionHeader(const MachineFunction &MF) {
|
||||
|
||||
SwitchToSection(TAI->SectionForGlobal(F));
|
||||
|
||||
unsigned FnAlign = OptimizeForSize ? 1 : 4;
|
||||
unsigned FnAlign = 4;
|
||||
if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
|
||||
FnAlign = 1;
|
||||
switch (F->getLinkage()) {
|
||||
|
@@ -140,7 +140,7 @@ bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
SwitchToTextSection("_text", F);
|
||||
|
||||
unsigned FnAlign = OptimizeForSize ? 1 : 4;
|
||||
unsigned FnAlign = 4;
|
||||
if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
|
||||
FnAlign = 1;
|
||||
switch (F->getLinkage()) {
|
||||
|
@@ -137,7 +137,7 @@ namespace {
|
||||
ContainsFPCode(false), TM(tm),
|
||||
X86Lowering(*TM.getTargetLowering()),
|
||||
Subtarget(&TM.getSubtarget<X86Subtarget>()),
|
||||
OptForSize(OptimizeForSize) {}
|
||||
OptForSize(false) {}
|
||||
|
||||
virtual const char *getPassName() const {
|
||||
return "X86 DAG->DAG Instruction Selection";
|
||||
|
Reference in New Issue
Block a user