SCEVExpander fix. RAUW needs to update the InsertedExpressions cache.
authorAndrew Trick <atrick@apple.com>
Mon, 14 Jan 2013 21:00:37 +0000 (21:00 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 14 Jan 2013 21:00:37 +0000 (21:00 +0000)
commit1ba5769676bb14078ddbdb9760523619726800c0
tree59b75cf60476f38c1a7ba25bd2256e8e2b2217cb
parenteb3ac4518e46ffaea978d40daf2b4b34b13c48dd
SCEVExpander fix. RAUW needs to update the InsertedExpressions cache.

Note that this bug is only exposed because LTO fails to use TTI.

Fixes self-LTO of clang. rdar://13007381.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172462 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpander.h
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/LoopStrengthReduce/2013-01-14-ReuseCast.ll [new file with mode: 0644]