[LoopFusion] Exit early if one of fusion candidate has guarded branch but the another...
authorluxufan <luxufan@iscas.ac.cn>
Tue, 3 Jan 2023 15:05:18 +0000 (23:05 +0800)
committerluxufan <luxufan@iscas.ac.cn>
Tue, 3 Jan 2023 15:18:58 +0000 (23:18 +0800)
commitaca7441c7ae2c8a0518764265ef6a08449165ced
tree82d4f89ef24a1d770b545aa41bbfeae96032daf4
parent89ada6c51fbdf59dcab8a1e479f60196d29bd4d3
[LoopFusion] Exit early if one of fusion candidate has guarded branch but the another has not

Fixes: https://github.com/llvm/llvm-project/issues/59024

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D138269
llvm/lib/Transforms/Scalar/LoopFuse.cpp
llvm/test/Transforms/LoopFusion/guarded.ll