[PATCH] D39236: [SCEV][NFC] Introduce isSafeToExpandAt function to SCEVExpander

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


mkazantsev created this revision.

This function checks that:

1. It is safe to expand a SCEV;
2. It is OK to materialize it at the specified location.

For example, attempt to expand a loop's AddRec to the same loop's preheader should fail.


https://reviews.llvm.org/D39236

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39236.120057.patch
Type: text/x-patch
Size: 4261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/28837f92/attachment.bin>


More information about the llvm-commits mailing list