diff options
| author | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-27 01:49:58 +0000 |
|---|---|---|
| committer | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-27 01:49:58 +0000 |
| commit | 8efb22ef25d3fee8d92542ae7b0c4db3fea2eb1f (patch) | |
| tree | df0afc10e30751d95f08ee1badb7fde91ee93f2b /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 272a2bc36501831328d62ff2081830709bd74b8a (diff) | |
| download | bcm5719-llvm-8efb22ef25d3fee8d92542ae7b0c4db3fea2eb1f.tar.gz bcm5719-llvm-8efb22ef25d3fee8d92542ae7b0c4db3fea2eb1f.zip | |
Enable llvm's isa/cast/dyn_cast on MemAccInst.
Differential Revision: http://reviews.llvm.org/D17250
llvm-svn: 262100
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 7cfb03c93a0..f621b2d8fe5 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -989,8 +989,8 @@ bool ScopDetection::isValidInstruction(Instruction &Inst, // Check the access function. if (auto MemInst = MemAccInst::dyn_cast(Inst)) { - Context.hasStores |= MemInst.isStore(); - Context.hasLoads |= MemInst.isLoad(); + Context.hasStores |= isa<StoreInst>(MemInst); + Context.hasLoads |= isa<LoadInst>(MemInst); if (!MemInst.isSimple()) return invalid<ReportNonSimpleMemoryAccess>(Context, /*Assert=*/true, &Inst); |

