GlobalISel: Fix moreElementsToNextPow2
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 4 Feb 2019 18:42:24 +0000 (18:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 4 Feb 2019 18:42:24 +0000 (18:42 +0000)
commit072382867573808d1cd5757799adfcdc697537c3
tree494223cbfaca52a558d74796997fd4af7edc1ed0
parent5745c5f54f459bdd9de36df031e697c59f2d4717
GlobalISel: Fix moreElementsToNextPow2

This was completely broken. The condition was inverted, and changed
the element type for vectors of pointers.

Fixes bug 40592.

llvm-svn: 353069
llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp
llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp