Commit ffd44634 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Revert "Fixing a bug in QPE: integer power within a while loop"

This reverts commit 8e99a0d9.
parent 8e99a0d9
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -621,13 +621,8 @@ void qasm3_visitor::createWhileLoop(
  // 'After' block must end with a yield op.
  {
    mlir::OpBuilder::InsertionGuard g(builder);
    if (auto b = symbol_table.get_last_created_block()) {
      builder.setInsertionPointToEnd(b);
      symbol_table.set_last_created_block(nullptr);
    } else {
    mlir::Operation &lastOp = whileOp.after().front().getOperations().back();
    builder.setInsertionPointAfter(&lastOp);
    }
    builder.create<mlir::scf::YieldOp>(location);
  }