OSDN Git Service

[PowerPC][Power10] Fix XXSPLI32DX not correctly exploiting specific cases
authorAlbion Fung <conanap@lep82435v.canlab.ibm.com>
Thu, 28 Jan 2021 20:17:18 +0000 (15:17 -0500)
committerTom Stellard <tstellar@redhat.com>
Wed, 3 Feb 2021 22:07:33 +0000 (14:07 -0800)
commitdfb763363bc560769605e37e96c1d13cb236223d
tree7502cd47933449ef5d2bd45d7c562d6a33ae3aa9
parentb351efcae08a59c0cafa123a92b24c5f2300202b
[PowerPC][Power10] Fix XXSPLI32DX not correctly exploiting specific cases

Some cases may be transformed into 32 bit splats before hitting the boolean statement, which may cause incorrect behaviour and provide XXSPLTI32DX with the incorrect values of splat. The condition was reversed so that the shortcut prevents this problem.

Differential Revision: https://reviews.llvm.org/D95634

(cherry picked from commit 2e470e03b49f1d79ebc315ca9d62a690a633c0cd)
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/p10-splatImm32.ll