[all-commits] [llvm/llvm-project] 51dfe3: [IR] Add PHINode::removeIncomingValueIf() (NFC)
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Aug 17 00:09:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51dfe3cb3bdf543186fb3fba5085f2376047bb33
https://github.com/llvm/llvm-project/commit/51dfe3cb3bdf543186fb3fba5085f2376047bb33
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-08-17 (Thu, 17 Aug 2023)
Changed paths:
M llvm/include/llvm/IR/Instructions.h
M llvm/lib/IR/Instructions.cpp
M llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
M llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
M llvm/lib/Transforms/Utils/LoopSimplify.cpp
M llvm/lib/Transforms/Utils/LoopUtils.cpp
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Log Message:
-----------
[IR] Add PHINode::removeIncomingValueIf() (NFC)
Add an API that allows removing multiple incoming phi values based
on a predicate callback, as suggested on D157621.
This makes sure that the removal is linear time rather than quadratic,
and avoids subtleties around iterator invalidation.
I have replaced some of the more straightforward users with the new
API, though there's a couple more places that should be able to use it.
Differential Revision: https://reviews.llvm.org/D158064
More information about the All-commits
mailing list