[llvm] Check hasOptSize() in shouldOptimizeForSize() (PR #112626)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 19 00:45:48 PDT 2024


================
@@ -571,7 +571,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
   SparseSet<LiveRegUnit> RegUnits;
   RegUnits.setUniverse(TRI->getNumRegUnits());
 
-  bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI);
+  bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI);
----------------
nikic wrote:

OptSize looks unused now?

https://github.com/llvm/llvm-project/pull/112626


More information about the llvm-commits mailing list