Do not ignore iv uses outside the loop.

This one slipped through cracks very well.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2008-09-17 17:53:47 +00:00
parent 442b1aa94b
commit 00622952ce
4 changed files with 101 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
; Loop is elimianted. Save last value assignments, including induction variable.
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
; RUN: grep "loop-index-split" | count 1
; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats | not grep "loop-index-split"
declare i32 @foo(i32)
declare i32 @bar(i32, i32)