[PATCH] D71569: [LoopFusion] Ensure that both loops are guarded or neither are guarded.

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 19:13:47 PST 2020


Whitney added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LoopFuse.cpp:1070
+    if (!((FC0.GuardBranch && FC1.GuardBranch) ||
+          (!FC0.GuardBranch && !FC1.GuardBranch)))
+      return false;
----------------
haveIdenticalGuards() is not called with both candidates unguarded, so (!FC0.GuardBranch && !FC1.GuardBranch) is impossible. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71569/new/

https://reviews.llvm.org/D71569





More information about the llvm-commits mailing list