summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-10-07 21:09:20 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-10-07 21:09:20 +0000
commit20fa0be97fc0348acd3651417f48e9a8ca455ac2 (patch)
tree0efab3c0fc90dbd115805cd7832caf19d73a2a1e /llvm/lib
parent506c684d5501b26da6a09974fb59fad0731ced25 (diff)
downloadbcm5719-llvm-20fa0be97fc0348acd3651417f48e9a8ca455ac2.tar.gz
bcm5719-llvm-20fa0be97fc0348acd3651417f48e9a8ca455ac2.zip
R600/SI: Remove assertion in SIInstrInfo::areLoadsFromSameBasePtr()
Added a FIXME coment instead, we need to handle the case where the two DS instructions being compared have different numbers of operands. llvm-svn: 219236
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIInstrInfo.cpp b/llvm/lib/Target/R600/SIInstrInfo.cpp
index af2177a6e76..fc2c63d6618 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.cpp
+++ b/llvm/lib/Target/R600/SIInstrInfo.cpp
@@ -88,7 +88,10 @@ bool SIInstrInfo::areLoadsFromSameBasePtr(SDNode *Load0, SDNode *Load1,
return false;
if (isDS(Opc0) && isDS(Opc1)) {
- assert(getNumOperandsNoGlue(Load0) == getNumOperandsNoGlue(Load1));
+
+ // FIXME: Handle this case:
+ if (getNumOperandsNoGlue(Load0) != getNumOperandsNoGlue(Load1))
+ return false;
// Check base reg.
if (Load0->getOperand(1) != Load1->getOperand(1))
OpenPOWER on IntegriCloud