[Mesa-dev] [PATCH 3/9] radeon/llvm: fix BUILD_VECTOR lowering for replicated value
Vadim Girlin
vadimgirlin at gmail.com
Tue May 15 02:41:28 PDT 2012
We expect that all elements will be assigned even if they are equal
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
src/gallium/drivers/radeon/AMDILISelLowering.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/radeon/AMDILISelLowering.cpp b/src/gallium/drivers/radeon/AMDILISelLowering.cpp
index 19b12fc..570927d 100644
--- a/src/gallium/drivers/radeon/AMDILISelLowering.cpp
+++ b/src/gallium/drivers/radeon/AMDILISelLowering.cpp
@@ -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:
--
1.7.10.1
More information about the mesa-dev
mailing list