mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
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:
parent
55aaa984cb
commit
fbee4fa427
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user