Index: InstructionCombining.cpp =================================================================== --- InstructionCombining.cpp +++ InstructionCombining.cpp @@ -2327,15 +2327,14 @@ if (isa(Op)) return eraseInstFromFunction(FI); - // If we optimize for code size, try to move the call to free before the null - // test so that simplify cfg can remove the empty block and dead code - // elimination the branch. I.e., helps to turn something like: + // Try to move the call to free before the null test so that simplify + // cfg can remove the empty block and dead code elimination the branch. + // helps to turn something like: // if (foo) free(foo); // into // free(foo); - if (MinimizeSize) - if (Instruction *I = tryToMoveFreeBeforeNullTest(FI)) - return I; + if (Instruction *I = tryToMoveFreeBeforeNullTest(FI)) + return I; return nullptr; }