diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-02-21 17:02:55 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-02-21 17:02:55 +0000 |
| commit | 2333ac279ff0af7a0ab16ed90dc844ec46e02a19 (patch) | |
| tree | 3cee19c46c776d417629c39f15913ce5d41ab8cd /llvm/lib | |
| parent | 6dcd49bc2b4dd5e6f76544571b9be2e5ffd3ddce (diff) | |
| download | bcm5719-llvm-2333ac279ff0af7a0ab16ed90dc844ec46e02a19.tar.gz bcm5719-llvm-2333ac279ff0af7a0ab16ed90dc844ec46e02a19.zip | |
fix a crasher in disabled code (on variable stride loops)
llvm-svn: 126125
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 568a1437423..f8ce214750a 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -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(); } |

