[all-commits] [llvm/llvm-project] 5bfe06: [SimplifyCFG] Use make_early_inc_range() while del...
Heejin Ahn via All-commits
all-commits at lists.llvm.org
Wed May 26 11:43:34 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3
https://github.com/llvm/llvm-project/commit/5bfe06ad3590d5aeb14c2fc3fae729abc6412cb3
Author: Heejin Ahn <aheejin at gmail.com>
Date: 2021-05-26 (Wed, 26 May 2021)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
A llvm/test/Transforms/SimplifyCFG/cleanup-phis.ll
Log Message:
-----------
[SimplifyCFG] Use make_early_inc_range() while deleting instructions
We are deleting `phi` nodes within the for loop, so this makes sure we
increment the iterator before we delete the instruction pointed by the
iterator.
This started to break in
https://github.com/llvm/llvm-project/commit/a0be08164622bf938855ff5d19dd8e9d0c96b9b3.
Reviewed By: dschuff, lebedev.ri
Differential Revision: https://reviews.llvm.org/D103181
More information about the All-commits
mailing list