aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LoopAligner.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-10-06 17:30:07 +0000
committerDevang Patel <dpatel@apple.com>2008-10-06 17:30:07 +0000
commitd365941ba7839d101d47289329406accf6d1ad42 (patch)
treef70fcc7feca5b1c5ed205867bd3ff608fcce0726 /lib/CodeGen/LoopAligner.cpp
parent87ea563c2b2e7f360a575d724426ad1f23ac34d4 (diff)
downloadexternal_llvm-d365941ba7839d101d47289329406accf6d1ad42.zip
external_llvm-d365941ba7839d101d47289329406accf6d1ad42.tar.gz
external_llvm-d365941ba7839d101d47289329406accf6d1ad42.tar.bz2
Remove unncessary isDeclaration() checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LoopAligner.cpp')
-rw-r--r--lib/CodeGen/LoopAligner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LoopAligner.cpp b/lib/CodeGen/LoopAligner.cpp
index 60e3f19..b8d0059 100644
--- a/lib/CodeGen/LoopAligner.cpp
+++ b/lib/CodeGen/LoopAligner.cpp
@@ -59,7 +59,7 @@ bool LoopAligner::runOnMachineFunction(MachineFunction &MF) {
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) {