[GVNHoist] Call isGuaranteedToTransferExecutionToSuccessor on each instruction
authorGeoff Berry <gberry@codeaurora.org>
Mon, 10 Apr 2017 20:45:17 +0000 (20:45 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Mon, 10 Apr 2017 20:45:17 +0000 (20:45 +0000)
commit635e5056752adeca6bf5a609621a5cc5b0929130
tree2ddec0d2e84ea5b01cfbb37fce30c826cc0ff91e
parent23841651553800e98d8deff920c6afb408523f00
[GVNHoist] Call isGuaranteedToTransferExecutionToSuccessor on each instruction

w.r.t. https://bugs.llvm.org/show_bug.cgi?id=32153
The consensus seems to be isGuaranteedToTransferExecutionToSuccessor should be called for each function.

Patch by Aditya Kumar

Differential Revision: https://reviews.llvm.org/D31035

llvm-svn: 299882
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/test/Transforms/GVNHoist/hoist-very-busy.ll