[GlobalISel] Refactor the unmerge artifact value finder code.
authorAmara Emerson <amara@apple.com>
Fri, 30 Jul 2021 00:07:19 +0000 (17:07 -0700)
committerAmara Emerson <amara@apple.com>
Fri, 30 Jul 2021 00:17:47 +0000 (17:17 -0700)
commitf984b0e177f8342a66bde66f65c71ac68bc9acf0
tree499c524fc1c00c99860aae3e44477c01fb7c0467
parenta68ccba77a48494a5200245ddcd085e49a77a2d1
[GlobalISel] Refactor the unmerge artifact value finder code.

I moved the code that tries to combine away each unmerge def into a method in
ArtifactValueFinder class itself. This removes a logically messy lambda and
makes it easier to use the value-finder in more places in future.
llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h