summaryrefslogtreecommitdiffstats
path: root/polly/test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-2.ll
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Make sure tests do not end in 'unreachable' - Part IITobias Grosser2017-03-071-1/+1
| | | | | | | | | | There is no point in optimizing unreachable code, hence our test cases should always return. This commit is part of a series that makes Polly more robust on the presence of unreachables. llvm-svn: 297150
* [ScopDetect] Evaluate and verify branches at branch condition, not icmpTobias Grosser2016-11-131-0/+47
The validity of a branch condition must be verified at the location of the branch (the branch instruction), not the location of the icmp that is used in the branch instruction. When verifying at the wrong location, we may accept an icmp that is defined within a loop which itself dominates, but does not contain the branch instruction. Such loops cannot be modeled as we only introduce domain dimensions for surrounding loops. To address this problem we change the scop detection to evaluate and verify SCEV expressions at the right location. This issue has been around since at least r179148 "scop detection: properly instantiate SCEVs to the place where they are used", where we explicitly set the scope to the wrong location. Before this commit the scope was not explicitly set, which probably also resulted in the scope around the ICmp to be choosen. This resolves http://llvm.org/PR30989 Reported-by: Eli Friedman <efriedma@codeaurora.org> llvm-svn: 286769
OpenPOWER on IntegriCloud