This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Remove duplicates from possible mappings
Needs ReviewPublic

Authored by ehjogab on Nov 26 2020, 2:15 AM.

Details

Summary

Some targets will in getInstrAlternativeMappings() will return a list
that contains the mapping returned by getInstrMapping(), thereby causing
duplicates. This patch removes such duplicates, which reduces the amount
of work that needs to be done when selecting register banks.

Diff Detail

Event Timeline

ehjogab created this revision.Nov 26 2020, 2:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2020, 2:15 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
ehjogab requested review of this revision.Nov 26 2020, 2:15 AM
ehjogab updated this revision to Diff 307801.Nov 26 2020, 2:27 AM

Reduce number of necessary checks.