mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
radeon/llvm: fix BUILD_VECTOR lowering for replicated value
We expect that all elements will be assigned even if they are equal Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
4b8db65dbf
commit
76e4898ba3
1 changed files with 2 additions and 0 deletions
|
|
@ -3894,6 +3894,7 @@ AMDILTargetLowering::LowerBUILD_VECTOR( SDValue Op, SelectionDAG &DAG ) const
|
|||
Nodes1 = DAG.getNode(AMDILISD::VBUILD,
|
||||
DL,
|
||||
VT, Op.getOperand(0));
|
||||
#if 0
|
||||
bool allEqual = true;
|
||||
for (unsigned x = 1, y = Op.getNumOperands(); x < y; ++x) {
|
||||
if (Op.getOperand(0) != Op.getOperand(x)) {
|
||||
|
|
@ -3904,6 +3905,7 @@ AMDILTargetLowering::LowerBUILD_VECTOR( SDValue Op, SelectionDAG &DAG ) const
|
|||
if (allEqual) {
|
||||
return Nodes1;
|
||||
}
|
||||
#endif
|
||||
switch(Op.getNumOperands()) {
|
||||
default:
|
||||
case 1:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue