aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-02-12 05:09:38 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-02-12 05:09:38 +0000
commitdb3a9e0cfed95f92b8de86090abc2a82dcce5658 (patch)
tree9a266ccaeecf442c4dfaf5694b683ad998dd41ef /clang/lib/Frontend/CompilerInvocation.cpp
parentb424fafa9ff9d121b2f3eb15bd0bf6a3b2e63bac (diff)
downloadllvm-db3a9e0cfed95f92b8de86090abc2a82dcce5658.zip
llvm-db3a9e0cfed95f92b8de86090abc2a82dcce5658.tar.gz
llvm-db3a9e0cfed95f92b8de86090abc2a82dcce5658.tar.bz2
[SCEV] Make getPostIncExpr guaranteed to return AddRec
The current implementation of `getPostIncExpr` invokes `getAddExpr` for two recurrencies and expects that it always returns it a recurrency. But this is not guaranteed to happen if we have reached max recursion depth or refused to make SCEV simplification for other reasons. This patch changes its implementation so that now it always returns SCEVAddRec without relying on `getAddExpr`. Differential Revision: https://reviews.llvm.org/D42953 llvm-svn: 324866
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions