[all-commits] [llvm/llvm-project] 69f3ea: [MachineBB] Make sure there are successors in term...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Jul 31 09:53:06 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 69f3ea08522eca4b8617145fdafb8fc6595ddf97
https://github.com/llvm/llvm-project/commit/69f3ea08522eca4b8617145fdafb8fc6595ddf97
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-07-31 (Thu, 31 Jul 2025)
Changed paths:
M llvm/include/llvm/CodeGen/MachineBasicBlock.h
M llvm/lib/CodeGen/TailDuplicator.cpp
Log Message:
-----------
[MachineBB] Make sure there are successors in terminatorIsComputedGoto. (#151342)
Currently terminatorIsComputedGoto will return for blocks with a
indirect branch terminator and no successor. If there are no successor,
the terminator is likely not a computed goto, return false in that case.
Note that this is currently NFC, as the only use checks it only if there
are successors, but it will be needed in
https://github.com/llvm/llvm-project/pull/150911.
PR: https://github.com/llvm/llvm-project/pull/151342
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