IVUsers should only generate SCEV's for values that are safe to speculate.
authorAndrew Trick <atrick@apple.com>
Fri, 13 Jul 2012 23:33:05 +0000 (23:33 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 13 Jul 2012 23:33:05 +0000 (23:33 +0000)
commit31f61e8b221eee4f839687e9ec4df89a469a2652
treeb0f1a63e7f2550fd9639287c45e3c9f366aee795
parent8b7036b0f4ae3f76ad24a6b9bc2d874620406306
IVUsers should only generate SCEV's for values that are safe to speculate.

This allows SCEVExpander to run on the IV expressions.

This codifies an assumption made by LSR to complete the fix for
PR11356, but I haven't been able to generate a separate unit test for
this part. I'm adding it as an extra safety check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IVUsers.cpp