[PATCH] D39233: [SCEV][NFC] Strengthen safety assert in SCEV expander

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 05:02:29 PDT 2017


mkazantsev created this revision.

This patch enhances assert that checks that it is safe to expand a particular SCEV
in SCEVExpander with one more condition: it checks that we do not try to expand
something that is not available in the block of insertion point. For example, that we
don't try to expand a Phi to its loop's preheader.


https://reviews.llvm.org/D39233

Files:
  include/llvm/Analysis/ScalarEvolutionExpander.h
  lib/Analysis/ScalarEvolutionExpander.cpp
  unittests/Analysis/ScalarEvolutionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39233.120047.patch
Type: text/x-patch
Size: 4627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/7e563322/attachment.bin>


More information about the llvm-commits mailing list