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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
branch-on-bool.c
blob
1126eecac6cf47b379f2c5f5d1c5c2d74547b85b
1
// RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
2
3
void
foo
(
void
);
4
void
bar
(
void
);
5
6
void
fold_if
(
int
a
,
int
b
) {
7
// CHECK: define {{.*}} @fold_if(
8
// CHECK-NOT: = phi
9
// CHECK: }
10
if
(
a
&&
b
)
11
foo
();
12
else
13
bar
();
14
}