]> granicus.if.org Git - llvm/commit
[SystemZ] Use VGM whenever possible to load FP immediates.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 12 Feb 2019 18:06:06 +0000 (18:06 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 12 Feb 2019 18:06:06 +0000 (18:06 +0000)
commit3044368de258cd87b7a2e40be70212b2d2d35208
treee8a1715a05635f64e9a519003b17bd32800a5de4
parentbdb2519a0ccb9b3ef4fd0a4ab275fad3ce76b139
[SystemZ]  Use VGM whenever possible to load FP immediates.

isFPImmLegal() has been extended to recognize certain FP immediates that can
be built with VGM (Vector Generate Mask).

These scalar FP immediates (that were previously loaded from the constant
pool) are now selected as VGMF/VGMG in Select().

Review: Ulrich Weigand
https://reviews.llvm.org/D58003

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
test/CodeGen/SystemZ/fp-const-12.ll [new file with mode: 0644]
test/CodeGen/SystemZ/subregliveness-02.ll