This is an archive of the discontinued LLVM Phabricator instance.

[Codegen] Set ARITH_FENCE as meta-instruction
ClosedPublic

Authored by skan on Oct 20 2021, 2:19 AM.

Details

Summary

ARITH_FENCE, which was added by https://reviews.llvm.org/D99675,
should be a meta-instruction b/c it only emits comments "ARITH_FENCE".

Diff Detail

Event Timeline

skan requested review of this revision.Oct 20 2021, 2:19 AM
skan created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2021, 2:19 AM
LuoYuanke added inline comments.Oct 20 2021, 4:53 AM
llvm/unittests/MIR/MachineMetadata.cpp
312

Can we remove debug metadata to reduce the case?

347

Is dump() necessary?

skan updated this revision to Diff 380938.Oct 20 2021, 6:54 AM

Address review comments

skan marked 2 inline comments as done.Oct 20 2021, 6:55 AM
skan added inline comments.
llvm/unittests/MIR/MachineMetadata.cpp
312

There is no test case to cover all the cases of MetaInstruction, so we add the unittest here. Debug metatdata here is necessary to test the MetaInstruction DBG_VALUE.

347

Removed

LuoYuanke accepted this revision.Oct 20 2021, 7:01 AM

LGTM, thanks.

This revision is now accepted and ready to land.Oct 20 2021, 7:01 AM
pengfei accepted this revision.Oct 20 2021, 7:16 PM

LGTM.

This revision was automatically updated to reflect the committed changes.
skan marked 2 inline comments as done.