GlobalISel: Make special case handling clearer
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 16 Jun 2020 15:32:52 +0000 (11:32 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 16 Jun 2020 18:32:47 +0000 (14:32 -0400)
commit91bec1d385c3d460866f98828f3c4965d9a3289e
tree7a05a87a3dbb44b975e9f5dd9fe208bfa48260aa
parentd98a7c3cf4610e5963a05e5d5a12bf43fea8e22c
GlobalISel: Make special case handling clearer

The special case here is really G_UNMERGE_VALUES, not G_EXTRACT. The
other opcodes can hardcode index 1 like G_EXTRACT.
llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h