Issue |
154292
|
Summary |
LLVM doesn't discard obviously incorrect annotations
|
Labels |
new issue
|
Assignees |
|
Reporter |
philnik777
|
LLVM currently doesn't discard likelihood information even when a condition is known to be true in certain cases. e.g.
```c++
if (condition) [[likely]]
do_something();
else
do_something_else();
```
will avoid inlining `do_something_else` even if `condition` is known to be false.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs