This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: avoid emitting unnecessary CFI
ClosedPublic

Authored by compnerd on Jul 14 2016, 7:22 PM.

Details

Summary

Remove unnecessary clutter in assembly output. When using SjLj EH, the CFI is
not actually used for anything. Do not emit the CFI needlessly. The minor test
adjustments are interesting. The prologue test was just overzealous matcching.
The interesting case is the LSDA change. It was originally added to ensure that
various compilations did not mangle the name (it explicitly checked the name!).
However, subsequent cleanups made it more reliant on the CFI to find the name.
Parse the generated code flow to generically find the label still.

Diff Detail

Repository
rL LLVM

Event Timeline

compnerd updated this revision to Diff 64078.Jul 14 2016, 7:22 PM
compnerd retitled this revision from to CodeGen: avoid emitting unnecessary CFI.
compnerd updated this object.
compnerd added reviewers: grosbach, kledzik.
compnerd set the repository for this revision to rL LLVM.
compnerd added a subscriber: llvm-commits.
t.p.northover accepted this revision.Jul 15 2016, 1:43 PM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

I think this is reasonable. As far as I can tell the __eh_frame sections really are unused.

This revision is now accepted and ready to land.Jul 15 2016, 1:43 PM
compnerd closed this revision.Jul 15 2016, 2:18 PM

SVN r275614