forked from OSchip/llvm-project
fix a crasher in disabled code (on variable stride loops)
llvm-svn: 126125
This commit is contained in:
parent
6dcd49bc2b
commit
2333ac279f
|
@ -281,7 +281,7 @@ bool LoopIdiomRecognize::processLoopStore(StoreInst *SI, const SCEV *BECount) {
|
|||
// TODO: Could also handle negative stride here someday, that will require
|
||||
// the validity check in mayLoopAccessLocation to be updated though.
|
||||
// Enable this to print exact negative strides.
|
||||
if (0 && StoreSize == -Stride->getValue()->getValue()) {
|
||||
if (0 && Stride && StoreSize == -Stride->getValue()->getValue()) {
|
||||
dbgs() << "NEGATIVE STRIDE: " << *SI << "\n";
|
||||
dbgs() << "BB: " << *SI->getParent();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue