[PATCH] D39781: [GVNHoist] Fix: PR35222 gvn-hoist incorrectly erases load

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 22:29:56 PST 2017


hiraditya created this revision.

CHI should only be inserted when the parent basic block belongs to the same outer loop as the current loop.


https://reviews.llvm.org/D39781

Files:
  lib/Transforms/Scalar/GVNHoist.cpp
  test/Transforms/GVNHoist/pr35222-hoist-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39781.122030.patch
Type: text/x-patch
Size: 4460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171108/115ad6af/attachment.bin>


More information about the llvm-commits mailing list