remove redundant check: optForSize() includes a check for the minsize attribute; NFCI

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjay Patel 2015-12-07 19:13:40 +00:00
parent 55aaa984cb
commit fbee4fa427

View File

@ -294,11 +294,9 @@ bool OptimizeLEAPass::removeRedundantAddrCalc(
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();