[all-commits] [llvm/llvm-project] fb2c6b: [BranchFolding] Use isSuccessor to confirm fall th...
Haohai Wen via All-commits
all-commits at lists.llvm.org
Thu Jan 18 07:26:35 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb2c6bbf42b09c0d3d31df7cac3f5a6cc2ee929e
https://github.com/llvm/llvm-project/commit/fb2c6bbf42b09c0d3d31df7cac3f5a6cc2ee929e
Author: Haohai Wen <haohai.wen at intel.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M llvm/lib/CodeGen/BranchFolding.cpp
M llvm/test/CodeGen/X86/branchfolding-landingpad-cfg.mir
Log Message:
-----------
[BranchFolding] Use isSuccessor to confirm fall through (#77923)
When merging blocks, if the previous block has no any branch instruction
and has one successor, the successor may be SEH landing pad and the
block will always raise exception and nerver fall through to next block.
We can not merge them in such case. isSuccessor should be used to
confirm it can fall through to next block.
More information about the All-commits
mailing list