diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-09-10 12:56:46 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-09-10 12:56:46 +0000 |
commit | 171f07ed716862d67072507476d483fede3c58bf (patch) | |
tree | b4e4f96a5713dbbcc9289dbf67b64813811941a5 /polly/lib/Support/SCEVValidator.cpp | |
parent | 86be1c5caf9fb9ade74266accec0c05e1abd67ff (diff) | |
download | bcm5719-llvm-171f07ed716862d67072507476d483fede3c58bf.tar.gz bcm5719-llvm-171f07ed716862d67072507476d483fede3c58bf.zip |
Disable support for modulo expressions
The support for modulo expressions is not comlete and makes the new
domain generation harder. As the currently broken domain generation
needs to be replaced, we will first swap in the new, fixed domain
generation and make it compatible with the modulo expressions later.
llvm-svn: 247278
Diffstat (limited to 'polly/lib/Support/SCEVValidator.cpp')
-rw-r--r-- | polly/lib/Support/SCEVValidator.cpp | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index 85bda185ec3..4514219d79a 100644 --- a/polly/lib/Support/SCEVValidator.cpp +++ b/polly/lib/Support/SCEVValidator.cpp @@ -350,17 +350,23 @@ public: } ValidatorResult visitSRemInstruction(Instruction *SRem, const SCEV *S) { - assert(SRem->getOpcode() == Instruction::SRem && - "Assumed SRem instruction!"); - - auto *Divisor = SRem->getOperand(1); - auto *CI = dyn_cast<ConstantInt>(Divisor); - if (!CI) - return visitGenericInst(SRem, S); - - auto *Dividend = SRem->getOperand(0); - auto *DividendSCEV = SE.getSCEV(Dividend); - return visit(DividendSCEV); + // TODO: FIXME: SRem instructions in the domain description are currently + // not compatible with the domain generation. Once this is + // fixed we need to enable this handling again. + return ValidatorResult(SCEVType::INVALID); +#if 0 + assert(SRem->getOpcode() == Instruction::SRem && + "Assumed SRem instruction!"); + + auto *Divisor = SRem->getOperand(1); + auto *CI = dyn_cast<ConstantInt>(Divisor); + if (!CI) + return visitGenericInst(SRem, S); + + auto *Dividend = SRem->getOperand(0); + auto *DividendSCEV = SE.getSCEV(Dividend); + return visit(DividendSCEV); +#endif } ValidatorResult visitUnknown(const SCEVUnknown *Expr) { |