[PATCH] D90807: [PowerPC] add has side effect for SAT bit clobber intrinsics/instructions
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 01:33:55 PST 2020
shchenz added inline comments.
================
Comment at: llvm/include/llvm/IR/IntrinsicsPowerPC.td:840
+ [IntrNoMem, IntrHasSideEffects]>;
def int_ppc_altivec_vsum4sbs : GCCBuiltin<"__builtin_altivec_vsum4sbs">,
Intrinsic<[llvm_v4i32_ty], [llvm_v16i8_ty, llvm_v4i32_ty],
----------------
steven.zhang wrote:
> I think, we need to set the side effect in the .td to avoid scheduling schedule them.
> ```
> { 2447, 3, 1, 4, 439, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2447 = VSUBUWM
> { 2448, 3, 1, 4, 376, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2448 = VSUBUWS
> { 2449, 3, 1, 4, 508, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2449 = VSUM2SWS
> { 2450, 3, 1, 4, 508, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2450 = VSUM4SBS
> { 2451, 3, 1, 4, 508, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2451 = VSUM4SHS
> { 2452, 3, 1, 4, 508, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2452 = VSUM4UBS
> { 2453, 3, 1, 4, 508, 0, 0x28ULL, nullptr, nullptr, OperandInfo85 }, // Inst #2453 = VSUMSWS
> ```
Fair enough. Updated accordingly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90807/new/
https://reviews.llvm.org/D90807
More information about the llvm-commits
mailing list