[all-commits] [llvm/llvm-project] 11e65b: [JumpThreading] Remove deleted BB from Unreachable...

weiguozhi via All-commits all-commits at lists.llvm.org
Thu Feb 27 15:40:42 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11e65b98b3c0088a84ca5d1d74a0fd4bab462b40
      https://github.com/llvm/llvm-project/commit/11e65b98b3c0088a84ca5d1d74a0fd4bab462b40
  Author: weiguozhi <57237827+weiguozhi at users.noreply.github.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/JumpThreading.h
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/test/Transforms/JumpThreading/pr62908.ll

  Log Message:
  -----------
  [JumpThreading] Remove deleted BB from Unreachable (#126984)

Although an unreachable BB is skipped by processBlock, its successor can
still be handled by processBlock, and maybeMergeBasicBlockIntoOnlyPred
may merge the two BBs and delete the unreachable BB. Then the garbage
pointer is left in Unreachable set. This patch avoids merging a BB into 
unreachable predecessor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list