[PATCH] D32614: [GVNHoist] Fix: PR32821, add check for anticipability in case of infinite loops

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 12:25:13 PDT 2017


hiraditya created this revision.

This fixes the case when gvn-hoist would hoist instructions when there is an infinite loop in the path from HoistBB to the end of the function. https://bugs.llvm.org/show_bug.cgi?id=32821


https://reviews.llvm.org/D32614

Files:
  llvm/lib/Transforms/Scalar/GVNHoist.cpp
  llvm/test/Transforms/GVNHoist/infinite-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32614.96975.patch
Type: text/x-patch
Size: 7674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170427/c850dc92/attachment.bin>


More information about the llvm-commits mailing list