[NFCI][SimplifyCFG] Don't form DTU updates if we aren't going to apply them
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Mar 2021 20:36:33 +0000 (23:36 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Mar 2021 21:02:37 +0000 (00:02 +0300)
commit2070fe7144fcf76f0800c423c11882c9b872da6c
tree02e9a65ac8c1a8ee5f957e52f508cfd2311f7ecf
parent56e6eb797599b3da0cf22a4e2cd293b76cb08c60
[NFCI][SimplifyCFG] Don't form DTU updates if we aren't going to apply them

I think we may want to have a thin wrapper over a vector to deduplicate
those `if(DTU)` predicates, and instead do them in the `insert()` itself.
llvm/lib/Transforms/Utils/Local.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp