[PATCH] D27216: [SCEVExpand] do not hoist divisions by zero (PR30935)

Sebastian Pop via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 14:59:38 PST 2016


sebpop updated this revision to Diff 79649.
sebpop added a comment.

Added the unittest and the change to make it pass: InsertBinop() should not hoist divisions by zero.


https://reviews.llvm.org/D27216

Files:
  llvm/lib/Analysis/ScalarEvolution.cpp
  llvm/lib/Analysis/ScalarEvolutionExpander.cpp
  llvm/test/Transforms/LoopIdiom/pr30935.ll
  llvm/unittests/Analysis/ScalarEvolutionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27216.79649.patch
Type: text/x-patch
Size: 12986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161129/6b972519/attachment.bin>


More information about the llvm-commits mailing list