repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2002-03-14-BrokenSSA.c
blob
1c83c8c948046797610e0839d71333b03811a9cc
1
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
/* This code used to break GCC's SSA computation code. It would create
4
uses of B & C that are not dominated by their definitions. See:
5
http://gcc.gnu.org/ml/gcc/2002-03/msg00697.html
6
*/
7
int
bar
(
void
);
8
int
foo
(
void
)
9
{
10
int
a
,
b
,
c
;
11
12
a
=
b
+
c
;
13
b
=
bar
();
14
c
=
bar
();
15
return
a
+
b
+
c
;
16
}
17