[ExpandMemCmp] Update CFG before DTU
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Oct 2021 19:47:15 +0000 (21:47 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Oct 2021 19:49:47 +0000 (21:49 +0200)
commit54d868991ab79abc5c52cf38939f0a45292e7506
tree030d3d798f89ebbb0620d0949d6b8e1af3925ba9
parentff6fe9a2f1612a47f37d98808316c8079a74f884
[ExpandMemCmp] Update CFG before DTU

The applyUpdates() API requires that the CFG is already updated,
so make sure to insert the new terminator first.
llvm/lib/CodeGen/ExpandMemCmp.cpp