llvm-project
efe5917a - [SimplifyCFG] Fix file comment about single-entry PHI elimination (NFC)

Commit
26 days ago
[SimplifyCFG] Fix file comment about single-entry PHI elimination (NFC) The file comment claimed SimplifyCFG "Eliminates PHI nodes for basic blocks with a single predecessor." It doesn't do that in general: it only folds single-entry PHIs as part of merging a block into its predecessor (and in one branch-threading special case). Other single-entry PHIs are deliberately left alone because they may be LCSSA PHIs, and InstSimplify and InstCombine already remove them. Fixes #5211. Assisted-by: Claude Opus 5.5
Author
Parents
Loading