This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Tidy up unnecessary calls to createGenericVirtualRegister
ClosedPublic

Authored by foad on Jan 31 2020, 8:44 AM.

Details

Summary

As a side effect some redundant copies of constant values are removed by
CSEMIRBuilder.

Diff Detail

Event Timeline

foad created this revision.Jan 31 2020, 8:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2020, 8:44 AM
arsenm accepted this revision.Jan 31 2020, 8:49 AM
arsenm added inline comments.
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
661–664

Side note, but I'm not sure this is a fold buildInsert should be trying

This revision is now accepted and ready to land.Jan 31 2020, 8:49 AM

Unit tests: pass. 62371 tests passed, 0 failed and 839 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

This revision was automatically updated to reflect the committed changes.