diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2016-02-26 16:40:35 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2016-02-26 16:40:35 +0000 |
| commit | 0ac2d3e21757038846cdb7c71df2f414b36cfd40 (patch) | |
| tree | 9ea92cab39d44d425ef713aee60350e79ddf4e29 /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 4d169bdca2167c42d1a2bac2cfc9f60e6a864034 (diff) | |
| download | bcm5719-llvm-0ac2d3e21757038846cdb7c71df2f414b36cfd40.tar.gz bcm5719-llvm-0ac2d3e21757038846cdb7c71df2f414b36cfd40.zip | |
ScopDetection: Fix mix-up of isLoad and isStore.
This was accidentally introduced in r258947.
Thanks to Hongbin Zheng for finding this.
Found-by: etherzhhb
llvm-svn: 262032
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 2046a907f3e..c4484bb4056 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -980,8 +980,8 @@ bool ScopDetection::isValidInstruction(Instruction &Inst, // Check the access function. if (auto MemInst = MemAccInst::dyn_cast(Inst)) { - Context.hasStores |= MemInst.isLoad(); - Context.hasLoads |= MemInst.isStore(); + Context.hasStores |= MemInst.isStore(); + Context.hasLoads |= MemInst.isLoad(); if (!MemInst.isSimple()) return invalid<ReportNonSimpleMemoryAccess>(Context, /*Assert=*/true, &Inst); |

