[llvm] [StackColoring] Delete lifetime markers even when pass is disabled by -opt-bisect-limit (PR #176050)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 14 15:08:48 PST 2026


================
@@ -1246,7 +1243,8 @@ bool StackColoring::run(MachineFunction &Func) {
 
   // Don't continue because there are not enough lifetime markers, or the
   // stack is too small, or we are told not to optimize the slots.
-  if (NumMarkers < 2 || TotalSize < 16 || DisableColoring) {
+  if (NumMarkers < 2 || TotalSize < 16 || DisableColoring ||
+      OnlyRemoveMarkers) {
----------------
preames wrote:

Update the comment just above.

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


More information about the llvm-commits mailing list