[SimpleLoopUnswitch] turnGuardIntoBranch use BB utils to update DT
authorJoshua Cao <cao.joshua@yahoo.com>
Thu, 18 May 2023 03:40:40 +0000 (20:40 -0700)
committerJoshua Cao <cao.joshua@yahoo.com>
Thu, 18 May 2023 04:44:04 +0000 (21:44 -0700)
commitd242b52d0e477171f3f6b957bafece88edb88a4f
tree4d6ff4360ada815357c759727be92ea4d93c1edd
parent77f38e1325a251623ec39a0d9ffa718e80436f94
[SimpleLoopUnswitch] turnGuardIntoBranch use BB utils to update DT

turnGuardIntoBranch() can use splitBlockAndInsertIfThen to update the
DominatorTree rather than implementing it itself.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp