[MemDep][NFCI] Remove redundant dyn_cast, replace with cast
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 30 May 2022 10:16:42 +0000 (17:16 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 30 May 2022 10:17:55 +0000 (17:17 +0700)
commit180d3f251d1ad5473705d3f00e6d426b5f8162e6
tree2d2b1929f982a1f05f1641d7841781019a3993b0
parent10d2195305ac49605f2b7b6a25a4076c31923191
[MemDep][NFCI] Remove redundant dyn_cast, replace with cast

When `IsLoad` is `true`, we don't need to check if the instruction
is actually a load with dyn_cast. Saves some petty amount of CT.
llvm/lib/Analysis/MemoryDependenceAnalysis.cpp