[llvm] r254925 - remove redundant check: optForSize() includes a check for the minsize attribute; NFCI
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 11:13:40 PST 2015
Author: spatel
Date: Mon Dec 7 13:13:40 2015
New Revision: 254925
URL: http://llvm.org/viewvc/llvm-project?rev=254925&view=rev
Log:
remove redundant check: optForSize() includes a check for the minsize attribute; NFCI
Modified:
llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp
Modified: llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp?rev=254925&r1=254924&r2=254925&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp Mon Dec 7 13:13:40 2015
@@ -294,11 +294,9 @@ bool OptimizeLEAPass::removeRedundantAdd
bool OptimizeLEAPass::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false;
- bool OptSize = MF.getFunction()->optForSize();
- bool MinSize = MF.getFunction()->optForMinSize();
// Perform this optimization only if we care about code size.
- if (!OptSize && !MinSize)
+ if (!MF.getFunction()->optForSize())
return false;
MRI = &MF.getRegInfo();
More information about the llvm-commits
mailing list