summaryrefslogtreecommitdiffstats
path: root/polly/lib/Support/ScopHelper.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-11 19:12:19 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-11 19:12:19 +0000
commitc47edb51c68b399b1576b7306bad1b8cb7e39c28 (patch)
treef76c5c037e6d6dab99cae426d2894bdb2b300d7d /polly/lib/Support/ScopHelper.cpp
parentd594aeb248be95aa4765e435c28a066e5f861ac4 (diff)
downloadbcm5719-llvm-c47edb51c68b399b1576b7306bad1b8cb7e39c28.tar.gz
bcm5719-llvm-c47edb51c68b399b1576b7306bad1b8cb7e39c28.zip
[FIX] Correctly handle scalar dependences of branch instructions
llvm-svn: 228866
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
-rw-r--r--polly/lib/Support/ScopHelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp
index 52e673357ae..39a6040d50c 100644
--- a/polly/lib/Support/ScopHelper.cpp
+++ b/polly/lib/Support/ScopHelper.cpp
@@ -70,6 +70,8 @@ Value *polly::getPointerOperand(Instruction &Inst) {
Type *polly::getAccessInstType(Instruction *AccInst) {
if (StoreInst *Store = dyn_cast<StoreInst>(AccInst))
return Store->getValueOperand()->getType();
+ if (BranchInst *Branch = dyn_cast<BranchInst>(AccInst))
+ return Branch->getCondition()->getType();
return AccInst->getType();
}
OpenPOWER on IntegriCloud