This is an archive of the discontinued LLVM Phabricator instance.

[cfi-verify] Adds blacklist blame behaviour to cfi-verify.
ClosedPublic

Authored by hctim on Nov 7 2017, 11:03 AM.

Details

Summary

Adds the blacklist behaviour to llvm-cfi-verify. Now will calculate which lines caused expected failures in the blacklist and reports the number of affected indirect CF instructions for each blacklist entry.

Also moved DWARF checking after instruction analysis to improve performance significantly - unrolling the inlining stack is expensive.

Diff Detail

Repository
rL LLVM

Event Timeline

hctim edited the summary of this revision. (Show Details)Nov 7 2017, 12:37 PM
hctim updated this revision to Diff 121985.Nov 7 2017, 2:14 PM

Rebased over master.

vlad.tsyrklevich accepted this revision.Nov 8 2017, 3:59 PM
vlad.tsyrklevich added inline comments.
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
103 ↗(On Diff #121985)

Could we just unroll this loop? Seems a little clearer and it should be shorter too.

This revision is now accepted and ready to land.Nov 8 2017, 3:59 PM
hctim updated this revision to Diff 122176.Nov 8 2017, 4:15 PM

Unrolled the inner loop of blame checking and rebased against master.

hctim marked an inline comment as done.Nov 8 2017, 4:16 PM
This revision was automatically updated to reflect the committed changes.