Calculate getTerminator only when necessary
authorAditya Kumar <1894981+hiraditya@users.noreply.github.com>
Sun, 13 Jun 2021 18:32:28 +0000 (11:32 -0700)
committerAditya Kumar <1894981+hiraditya@users.noreply.github.com>
Mon, 14 Jun 2021 03:16:07 +0000 (20:16 -0700)
commitdcbbc69cc58294cedc865259c6fd5ba80ecd9bd3
treebd9a4571c7ef03790a73ed32f6ebf5b7ae83b79f
parentba9e28064b25b199715b3a10f3bd3f7ac8cd6dfb
Calculate getTerminator only when necessary

Differential Revision: https://reviews.llvm.org/D104202
llvm/lib/Transforms/IPO/HotColdSplitting.cpp