projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46030a6
)
Add a new testcase for an eliminable cast
author
Chris Lattner
<sabre@nondot.org>
Thu, 19 Jan 2006 07:39:20 +0000
(07:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 19 Jan 2006 07:39:20 +0000
(07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25451
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/cast.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/cast.ll
b/test/Transforms/InstCombine/cast.ll
index fb0b899ef11cbd7ab5a8021509231943dbcc5f73..53bc87ff6aa50a3b091d71ceacc765c77c18829c 100644
(file)
--- a/
test/Transforms/InstCombine/cast.ll
+++ b/
test/Transforms/InstCombine/cast.ll
@@
-161,3
+161,8
@@
void %test25(int** %P) {
ret void
}
+int %test26(float %F) {
+ %c = cast float %F to double ;; no need to cast from float->double.
+ %D = cast double %c to int
+ ret int %D
+}