Page MenuHomePhabricator

Map Parameters marked as dereferenceable during inlining to loads.
Needs ReviewPublic

Authored by mcberg2017 on Feb 18 2021, 3:11 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

If a call has a Dereferenceable parameter and the call site provides
a pointer load to that parameter, walk all load's uses and validate
that all the calls we find have at least one parameter which
shares this property and matches the same definition.

Diff Detail

Unit TestsFailed

TimeTest
430 msx64 debian > HWAddressSanitizer-x86_64.TestCases::sizes.cpp
Script: -- : 'RUN: at line 3'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp -nostdlib++ -lstdc++ -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp
960 msx64 debian > OMPT multiplex.custom_data_storage::custom_data_storage.c
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel -shared -fPIC -g -DFIRST_TOOL -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/custom_data_storage/Output/custom_data_storage.c.tmp.first.tool.so /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/custom_data_storage/custom_data_storage.c && /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel -shared -fPIC -g -DSECOND_TOOL -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/custom_data_storage/Output/custom_data_storage.c.tmp.second.tool.so /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/custom_data_storage/custom_data_storage.c && /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/custom_data_storage/custom_data_storage.c -o /mnt/disks/ssd0/agent/llvm…
1,000 msx64 debian > OMPT multiplex.print::print.c
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel -shared -fPIC -g -DFIRST_TOOL -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/print/Output/print.c.tmp.first.tool.so /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/print/print.c && /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel -shared -fPIC -g -DSECOND_TOOL -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/print/Output/print.c.tmp.second.tool.so /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/print/print.c && /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -I /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/.. -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt -Wl,-rpath,/mnt/disks/ssd0/agent/llvm-project/build/lib -fopenmp -pthread -fno-experimental-isel /mnt/disks/ssd0/agent/llvm-project/openmp/tools/multiplex/tests/print/print.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/print/Output/print.c.tmp && env OMP_TOOL_LIBRARIES=/mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/tools/multiplex/tests/print/Output/print.c.tmp.first.tool.so…
350 msx64 windows > lld.ELF/invalid::symtab-sh-info.s
Script: -- : 'RUN: at line 4'; c:\ws\w64\llvm-project\premerge-checks\build\bin\yaml2obj.exe --docnum=1 C:\ws\w64\llvm-project\premerge-checks\lld\test\ELF\invalid\symtab-sh-info.s -o C:\ws\w64\llvm-project\premerge-checks\build\tools\lld\test\ELF\invalid\Output\symtab-sh-info.s.tmp.o

Event Timeline

mcberg2017 created this revision.Feb 18 2021, 3:11 PM
mcberg2017 requested review of this revision.Feb 18 2021, 3:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 3:11 PM