diff options
author | Julian Lettner <jlettner@apple.com> | 2019-02-12 00:37:40 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-02-12 00:37:40 +0000 |
commit | ee82db57ec6de0446317b1fa84c9cb5467cbd09c (patch) | |
tree | 456d94879ca63905ebc1540c414012f30689e543 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 806136f8ef1cc440df2a1387187303fa080fd001 (diff) | |
download | llvm-ee82db57ec6de0446317b1fa84c9cb5467cbd09c.zip llvm-ee82db57ec6de0446317b1fa84c9cb5467cbd09c.tar.gz llvm-ee82db57ec6de0446317b1fa84c9cb5467cbd09c.tar.bz2 |
[libFuzzer] Make coverage.test work on ARM64
Summary:
This test instruments the following code with coverage, runs the fuzzer
once, and asserts that there are uncovered PCs. The ARM64 backend
optimizes this code using the `csel` (Conditional select) instruction,
which removes all branching from the resulting machine code. The test
then fails because we do not have any uncovered PCs. The easiest
solution for now is to turn off optimization for the DSOs used in this
test.
```
int DSO1(int a) {
if (a < 123456)
return 0;
return 1;
}
```
rdar://47646400
Reviewers: kcc
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D58087
llvm-svn: 353780
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions