This is an archive of the discontinued LLVM Phabricator instance.

Insertion of unconditional branch during FastISel differs when debug information is enabled
ClosedPublic

Authored by tellenbach on Sep 18 2019, 6:19 AM.

Details

Summary

The insertion of an unconditional branch during FastISel can differ depending on building with or without debug information. This happens because void FastISel::fastEmitBranch emits an unconditional branch depending on the size of the current basic block without distinguishing between debug and non-debug instructions.

This patch fixes this issue by ignoring debug instructions when getting the size of the basic block.

Diff Detail

Repository
rL LLVM

Event Timeline

tellenbach created this revision.Sep 18 2019, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2019, 6:19 AM
tellenbach retitled this revision from Insertion of unconditional branch during FastISel when debug information is enabled to Insertion of unconditional branch during FastISel differs when debug information is enabled.Sep 18 2019, 6:22 AM
aprantl accepted this revision.Sep 18 2019, 2:22 PM
This revision is now accepted and ready to land.Sep 18 2019, 2:22 PM
This revision was automatically updated to reflect the committed changes.