aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2017-12-27 07:15:23 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2017-12-27 07:15:23 +0000
commitedf3c8292b3694f1fb6dd4ef88d872aa22b2add9 (patch)
tree183797f6a2e827de20182df32e28f9228be8ee5e /llvm/lib/Support/CommandLine.cpp
parent17a3077f59f66e6045344dc6fb7372ddf2cf54c7 (diff)
downloadllvm-edf3c8292b3694f1fb6dd4ef88d872aa22b2add9.zip
llvm-edf3c8292b3694f1fb6dd4ef88d872aa22b2add9.tar.gz
llvm-edf3c8292b3694f1fb6dd4ef88d872aa22b2add9.tar.bz2
[SCEV] Do not insert if it is already in cache
This is fix for the crash caused by ScalarEvolution::getTruncateExpr. It expects that if it checked the condition that SCEV is not in UniqueSCEVs cache in the beginning that it will not be there inside this method. However during recursion and transformation/simplification for sub expression, it is possible that these modifications will end up with the same SCEV as we started from. So we must always check whether SCEV is in cache and do not insert item if it is already there. Reviewers: sanjoy, mkazantsev, craig.topper Reviewed By: sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D41380 llvm-svn: 321472
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions