[all-commits] [llvm/llvm-project] aa23e4: [NVPTX] Fix generating permute bytes from register...
mmoadeli via All-commits
all-commits at lists.llvm.org
Tue Jan 16 11:05:53 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa23e493f2b363982a472fe38caffc69d907402c
https://github.com/llvm/llvm-project/commit/aa23e493f2b363982a472fe38caffc69d907402c
Author: mmoadeli <mmoadeli at hotmail.co.uk>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
A llvm/test/CodeGen/NVPTX/shuffle-vec-undef-init.ll
Log Message:
-----------
[NVPTX] Fix generating permute bytes from register pair when the initial values are undefined (#74437)
When generating the permute bytes for the prmt instruction, the
existence of an undefined initial value initialises the int32 that holds
the mask with all 1's (0xFFFFFFFF). That initialization subsequently
leads to complications during the subsequent OR operation, leading to
inaccuracies in populating mask values for the following bytes.
Consequently, the final value persists as a constant -1, irrespective of
the actual mask values that succeed the initial set value.
More information about the All-commits
mailing list