This is an archive of the discontinued LLVM Phabricator instance.

[NFC][MacroFusion] Adding the assertion if someone want to fuse more than 2 instructions.
ClosedPublic

Authored by steven.zhang on Dec 8 2019, 7:16 PM.

Details

Summary

As discussed in https://reviews.llvm.org/D69998, we miss to create some dependency edges if chained more than 2 instructions. Adding an assertion here if someone want to chain more than 2 instructions.

Diff Detail

Event Timeline

steven.zhang created this revision.Dec 8 2019, 7:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2019, 7:16 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
fhahn accepted this revision.Dec 9 2019, 11:11 AM

LGTM, thanks!

llvm/lib/CodeGen/MacroFusion.cpp
80

nit: maybe it would be slightly better to put a whole sentence here, e.g. something like 'Currently we only support chaining together 2 instructions.'

This revision is now accepted and ready to land.Dec 9 2019, 11:11 AM
steven.zhang marked an inline comment as done.Dec 9 2019, 6:12 PM
steven.zhang added inline comments.
llvm/lib/CodeGen/MacroFusion.cpp
80

ok, I will update it when commit it.

This revision was automatically updated to reflect the committed changes.