diff options
author | Yonghong Song <yhs@fb.com> | 2017-11-20 21:37:58 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2017-11-20 21:37:58 +0000 |
commit | a4de6d86db7556f27584497f67b34a565eca630a (patch) | |
tree | b6333b42774311881ea8f83f96c72424401d2d2d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 86785bb0bb3afd13cb7b63172c0d546dd4cd2de1 (diff) | |
download | bcm5719-llvm-a4de6d86db7556f27584497f67b34a565eca630a.tar.gz bcm5719-llvm-a4de6d86db7556f27584497f67b34a565eca630a.zip |
bpf: add a test case for trunc-op optimization
Commit b5cbc7760ab8 ("[bpf] allow direct and indirect calls")
allowed more than one function in the bpf program, and
commit 114353884415 ("bpf: fix a bug in trunc-op optimization")
fixed a bug in trunc-op optimization which only showed up
with more than one function in the bpf program.
This patch added a test case for trunc-op optimization
for bpf programs with two functions. Reverting commit
"bpf: fix a bug in trunc-op optimization" will cause
failure for this test case.
Signed-off-by: Yonghong Song <yhs@fb.com>
llvm-svn: 318695
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions