[PowerPC] Fix load/store selection infrastructure when load/store intrinsics are...
authorAmy Kwan <amy.kwan1@ibm.com>
Thu, 2 Dec 2021 21:24:06 +0000 (15:24 -0600)
committerAmy Kwan <amy.kwan1@ibm.com>
Thu, 2 Dec 2021 21:59:29 +0000 (15:59 -0600)
commitc27734c183707247b43b215d3cf55c3dbc60ef5d
treeb3b888bfb89920c5d804096109b475949f0f52df
parentc15724ab34afd5d02ad7191d52d94c943d7326d7
[PowerPC] Fix load/store selection infrastructure when load/store intrinsics are used on P10.

The load/store infrastructure previously made an incorrect assumption that
whenever it is used with a load/store intrinsic on Power10 - those intrinsics
would automatically be the lxvp/stxvp intrinsics introduced in Power10.

However, this is obviously not the case as there are multiple instances of
pre-P10 intrinsics that use the refactored load/store implementation.
This patch corrects this assumption, and produces the expected intrinsic on pre-P10.

Differential Revision: https://reviews.llvm.org/D114978
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/lxvw4x-bug.ll
llvm/test/CodeGen/PowerPC/swaps-le-8.ll
llvm/test/CodeGen/PowerPC/vsx-ldst-builtin-le.ll
llvm/test/CodeGen/PowerPC/vsx_builtins.ll