From: Michael Kruse Date: Fri, 26 Feb 2016 16:40:35 +0000 (+0000) Subject: ScopDetection: Fix mix-up of isLoad and isStore. X-Git-Tag: llvmorg-3.9.0-rc1~13107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ac2d3e21757038846cdb7c71df2f414b36cfd40;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 2046a90..c4484bb 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(Context, /*Assert=*/true, &Inst);