diff options
| author | Tobias Grosser <tobias@grosser.es> | 2017-04-11 04:59:13 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2017-04-11 04:59:13 +0000 |
| commit | 7b5a4dfd46a28d4af766422da345c1a4ec71115c (patch) | |
| tree | f714af8f88fefe1c60a9d471930d7ebe317cdf7c /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 67726b326085026131fa657469b4e11347387e42 (diff) | |
| download | bcm5719-llvm-7b5a4dfd46a28d4af766422da345c1a4ec71115c.tar.gz bcm5719-llvm-7b5a4dfd46a28d4af766422da345c1a4ec71115c.zip | |
Exploit BasicBlock::getModule to shorten code
Suggested-by: Roman Gareev <gareevroman@gmail.com>
llvm-svn: 299914
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 44b17824981..31ee882d0ce 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -344,8 +344,7 @@ bool ScopDetection::addOverApproximatedRegion(Region *AR, bool ScopDetection::onlyValidRequiredInvariantLoads( InvariantLoadsSetTy &RequiredILS, DetectionContext &Context) const { Region &CurRegion = Context.CurRegion; - const DataLayout &DL = - CurRegion.getEntry()->getParent()->getParent()->getDataLayout(); + const DataLayout &DL = CurRegion.getEntry()->getModule()->getDataLayout(); if (!PollyInvariantLoadHoisting && !RequiredILS.empty()) return false; |

