]> granicus.if.org Git - llvm/commit
[GlobalISel] Relax vector G_SELECT assertion.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 7 Mar 2017 20:53:03 +0000 (20:53 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 7 Mar 2017 20:53:03 +0000 (20:53 +0000)
commit429811130e03c422a01eb55f0866b09af95fb71b
tree503e0b9ece480f4eb75f1c4643cf8619dbb8578c
parentfa62d55710f1c9ee1f6e670d31ff2020844f3e5c
[GlobalISel] Relax vector G_SELECT assertion.

For vector operands, the `select` instruction supports both vector and
non-vector conditions.  The MIR builder had an overly restrictive
assertion, that only accepted vector conditions for vector selects
(in effect implementing ISD::VSELECT).

Make it possible to express the full range of G_SELECTs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297207 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll