Run Coverage pass before other *San passes under new pass manager
authorArthur Eubanks <aeubanks@google.com>
Mon, 11 May 2020 01:06:55 +0000 (18:06 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 11 May 2020 19:59:09 +0000 (12:59 -0700)
commit7d5bb94d78386e4653535c35d3e8258bf4502340
tree07b55fc9261b2e8df5196a9950b0d2dcf744d83c
parentb6045448869a63dc7da3a4c87c124e85101220d7
Run Coverage pass before other *San passes under new pass manager

Summary:
This fixes compiler-rt/test/msan/coverage-levels.cpp under the new pass manager (final check-msan test!).
Under the old pass manager, the coverage pass would run before the MSan pass. The opposite happened under the new pass manager. The MSan pass adds extra basic blocks, changing the number of coverage callbacks.

Reviewers: vitalybuka, leonardchan

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79698
clang/lib/CodeGen/BackendUtil.cpp