[llvm-commits] [llvm] r57179 - in /llvm/trunk/lib: CodeGen/LoopAligner.cpp Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
Devang Patel
dpatel at apple.com
Mon Oct 6 10:30:08 PDT 2008
Author: dpatel
Date: Mon Oct 6 12:30:07 2008
New Revision: 57179
URL: http://llvm.org/viewvc/llvm-project?rev=57179&view=rev
Log:
Remove unncessary isDeclaration() checks.
Modified:
llvm/trunk/lib/CodeGen/LoopAligner.cpp
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/LoopAligner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LoopAligner.cpp?rev=57179&r1=57178&r2=57179&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LoopAligner.cpp (original)
+++ llvm/trunk/lib/CodeGen/LoopAligner.cpp Mon Oct 6 12:30:07 2008
@@ -59,7 +59,7 @@
return false; // Don't care about loop alignment.
const Function *F = MF.getFunction();
- if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
+ if (F->hasFnAttr(Attribute::OptimizeForSize))
return false;
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=57179&r1=57178&r2=57179&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Mon Oct 6 12:30:07 2008
@@ -154,7 +154,7 @@
SwitchToSection(TAI->SectionForGlobal(F));
unsigned FnAlign = 4;
- if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
+ if (F->hasFnAttr(Attribute::OptimizeForSize))
FnAlign = 1;
switch (F->getLinkage()) {
default: assert(0 && "Unknown linkage type!");
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp?rev=57179&r1=57178&r2=57179&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp Mon Oct 6 12:30:07 2008
@@ -141,7 +141,7 @@
SwitchToTextSection("_text", F);
unsigned FnAlign = 4;
- if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
+ if (F->hasFnAttr(Attribute::OptimizeForSize))
FnAlign = 1;
switch (F->getLinkage()) {
default: assert(0 && "Unsupported linkage type!");
More information about the llvm-commits
mailing list