From 0137d80ad42d470d08d9de8664c5677a6e27072b Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Fri, 28 Jul 2017 19:26:24 +0000 Subject: [PATCH] [VirtualInstruction] Remove assertion. NFC. ScopStmt::contains is currently implemented on the basis of BasicBlock and does not take the instruction list into account. Therefore any instruction copied by -polly-optree into another statement currently triggers that assertion. Remove that assertion for now. We might re-enable it when the implementation of ScopStmt::contains changes. llvm-svn: 309421 --- polly/include/polly/Support/VirtualInstruction.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/polly/include/polly/Support/VirtualInstruction.h b/polly/include/polly/Support/VirtualInstruction.h index e54103eb227a..bf7ebe4d67a9 100644 --- a/polly/include/polly/Support/VirtualInstruction.h +++ b/polly/include/polly/Support/VirtualInstruction.h @@ -242,8 +242,6 @@ public: VirtualInstruction(ScopStmt *Stmt, Instruction *Inst) : Stmt(Stmt), Inst(Inst) { assert(Stmt && Inst); - assert(Stmt->contains(Inst) && - "A virtual instruction must be exist in that statement"); } VirtualOperandIterator operand_begin() const {