[llvm] [Transforms][NFC] Drop uses of BranchInst in headers (PR #186580)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 14 03:32:20 PDT 2026
================
@@ -3309,8 +3306,8 @@ void GVNPass::addDeadBlock(BasicBlock *BB) {
// dead blocks with "UndefVal" in an hope these PHIs will optimized away.
//
// Return true iff *NEW* dead code are found.
-bool GVNPass::processFoldableCondBr(BranchInst *BI) {
- if (!BI || BI->isUnconditional())
+bool GVNPass::processFoldableCondBr(CondBrInst *BI) {
+ if (!BI)
----------------
nikic wrote:
Can omit this check as well, it can't be null.
https://github.com/llvm/llvm-project/pull/186580
More information about the llvm-commits
mailing list