[CodeGen] Add invalidation of the loop SCEVs after merge block generation.
commitf4cfc29d86bc803e0f168ef73e2834db1df70f97
authorMichael Kruse <llvm@meinersbur.de>
Mon, 22 May 2017 15:36:53 +0000 (22 15:36 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Mon, 22 May 2017 15:36:53 +0000 (22 15:36 +0000)
treea5c21f88203eeea8a4927c30c210806abcd4cb46
parent5558fde7fd8936783c481fbeedd6fc50a3b615ce
[CodeGen] Add invalidation of the loop SCEVs after merge block generation.

The SCEVs of loops surrounding the escape users of a merge blocks are
forgotten, so that loop trip counts based on old values can be revoked.

This fixes llvm.org//PR32536

Contributed-by: Baranidharan Mohan <mbdharan@gmail.com>
Differential Revision: https://reviews.llvm.org/D33195

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@303561 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/CodeGen/BlockGenerators.h
lib/CodeGen/BlockGenerators.cpp
test/Isl/CodeGen/two-scops-in-row-invalidate-scevs.ll [new file with mode: 0644]