[polly] r262032 - ScopDetection: Fix mix-up of isLoad and isStore.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 26 08:40:35 PST 2016
Author: meinersbur
Date: Fri Feb 26 10:40:35 2016
New Revision: 262032
URL: http://llvm.org/viewvc/llvm-project?rev=262032&view=rev
Log:
ScopDetection: Fix mix-up of isLoad and isStore.
This was accidentally introduced in r258947.
Thanks to Hongbin Zheng for finding this.
Found-by: etherzhhb
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=262032&r1=262031&r2=262032&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Fri Feb 26 10:40:35 2016
@@ -980,8 +980,8 @@ bool ScopDetection::isValidInstruction(I
// 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);
More information about the llvm-commits
mailing list