HomePhabricator

[GlobalISel] LegalizationArtifactCombiner: Fix a bug in tryCombineMerges

Authored by volkan on Feb 14 2020, 10:43 AM.

Description

[GlobalISel] LegalizationArtifactCombiner: Fix a bug in tryCombineMerges

Like COPY instructions explained in D70616, we don't check the constraints
when combining G_UNMERGE_VALUES. Use the same logic used in D70616 to check
if registers can be replaced, or a COPY instruction needs to be built.

https://reviews.llvm.org/D70564

Details

Committed
volkanFeb 14 2020, 10:45 AM
Parents
rGbf3b86bc2f10: [Hexagon] v67+ HVX register pairs should support either direction
Branches
Unknown
Tags
Unknown