projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d169bd
)
ScopDetection: Fix mix-up of isLoad and isStore.
author
Michael Kruse
<llvm@meinersbur.de>
Fri, 26 Feb 2016 16:40:35 +0000
(16:40 +0000)
committer
Michael Kruse
<llvm@meinersbur.de>
Fri, 26 Feb 2016 16:40:35 +0000
(16:40 +0000)
This was accidentally introduced in r258947.
Thanks to Hongbin Zheng for finding this.
Found-by: etherzhhb
llvm-svn: 262032
polly/lib/Analysis/ScopDetection.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/Analysis/ScopDetection.cpp
b/polly/lib/Analysis/ScopDetection.cpp
index
2046a90
..
c4484bb
100644
(file)
--- 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.is
Load
();
- Context.hasLoads |= MemInst.is
Store
();
+ Context.hasStores |= MemInst.is
Store
();
+ Context.hasLoads |= MemInst.is
Load
();
if (!MemInst.isSimple())
return invalid<ReportNonSimpleMemoryAccess>(Context, /*Assert=*/true,
&Inst);