From c47edb51c68b399b1576b7306bad1b8cb7e39c28 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Wed, 11 Feb 2015 19:12:19 +0000 Subject: [FIX] Correctly handle scalar dependences of branch instructions llvm-svn: 228866 --- polly/lib/Support/ScopHelper.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'polly/lib/Support/ScopHelper.cpp') 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(AccInst)) return Store->getValueOperand()->getType(); + if (BranchInst *Branch = dyn_cast(AccInst)) + return Branch->getCondition()->getType(); return AccInst->getType(); } -- cgit v1.2.3