[all-commits] [llvm/llvm-project] 61785f: Do not remove empty basic blocks which have addres...
Rahman Lavaee via All-commits
all-commits at lists.llvm.org
Tue Oct 3 16:09:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 61785ffcfc4d1167cfe860ed13faf9ba6fbfe340
https://github.com/llvm/llvm-project/commit/61785ffcfc4d1167cfe860ed13faf9ba6fbfe340
Author: Rahman Lavaee <rahmanl at google.com>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M llvm/lib/CodeGen/GCEmptyBasicBlocks.cpp
M llvm/test/CodeGen/X86/gc-empty-basic-blocks.ll
Log Message:
-----------
Do not remove empty basic blocks which have address taken. (#67740)
This PR replaces `isMachineBlockAddressTaken` by `hasAddressTaken` to
include blocks which have their IR address taken as well. These blocks
are also not removable since their predecessors' terminators do not
directly point to the block.
More information about the All-commits
mailing list