You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mehdi Bouaziz
3b2e9c78de
[clang trans] Simplify translation of if(not expr)
Summary:
```
n = v.empty();
if(!n) {
v[0] = 1;
}
```
used to be translated as
```
n = v.empty();
if(n) {
temp = 0;
} else {
temp = 1;
}
// join point
if(temp) {
v[0] = 1;
}
```
This diff removes the extra branching for if(not)
Reviewed By: jvillard
Differential Revision: D6008724
fbshipit-source-id: 40a8a40
|
7 years ago |
.. |
arithmetic
|
[siof] one access per sink, better report deduplication
|
7 years ago |
booleans
|
[siof] one access per sink, better report deduplication
|
7 years ago |
c_prototype
|
[siof] one access per sink, better report deduplication
|
7 years ago |
comma
|
[siof] one access per sink, better report deduplication
|
7 years ago |
conditional_operator
|
[clang trans] Simplify translation of if(not expr)
|
7 years ago |
enumeration
|
[siof] one access per sink, better report deduplication
|
7 years ago |
gotostmt
|
[clang trans] Simplify translation of if(not expr)
|
7 years ago |
initialization
|
[siof] one access per sink, better report deduplication
|
7 years ago |
loops
|
[siof] one access per sink, better report deduplication
|
7 years ago |
nestedoperators
|
[siof] one access per sink, better report deduplication
|
7 years ago |
offsetof_expr
|
[siof] one access per sink, better report deduplication
|
7 years ago |
switchstmt
|
[siof] one access per sink, better report deduplication
|
7 years ago |
types
|
[siof] one access per sink, better report deduplication
|
7 years ago |
unusual_exps
|
[siof] one access per sink, better report deduplication
|
7 years ago |
unusual_stmts
|
[siof] one access per sink, better report deduplication
|
7 years ago |
vaarg_expr
|
[siof] one access per sink, better report deduplication
|
7 years ago |
Makefile
|
Turn off --keep-going by default
|
7 years ago |
struct.c
|
[clang-format] Reformat all c/cpp/objc sources with clang-format
|
9 years ago |