diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-10-07 21:09:20 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-10-07 21:09:20 +0000 |
commit | 20fa0be97fc0348acd3651417f48e9a8ca455ac2 (patch) | |
tree | 0efab3c0fc90dbd115805cd7832caf19d73a2a1e /llvm/lib | |
parent | 506c684d5501b26da6a09974fb59fad0731ced25 (diff) | |
download | bcm5719-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.cpp | 5 |
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)) |