projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This implements the second half of the fix for PR3290, handling
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2004-04-04-InstCombineReplaceAllUsesWith.ll
diff --git
a/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
b/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
index b7bfb29f43450e1a2252b1ed6f7277929f67e9b1..0b93eb2322eb54afaacea5649ed00b36f61fe64b 100644
(file)
--- a/
test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
+++ b/
test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
@@
-1,8
+1,10
@@
; RUN: llvm-as < %s | opt -instcombine -disable-output
-int %test() {
- ret int 0
-Loop:
- %X = add int %X, 1
- br label %Loop
+define i32 @test() {
+ ret i32 0
+
+Loop: ; preds = %Loop
+ %X = add i32 %X, 1 ; <i32> [#uses=1]
+ br label %Loop
}
+