Revision: 16041
Author:   [email protected]
Date:     Mon Aug  5 01:59:55 2013
Log:      Fix the loop-builder to tag the entire body as part of the loop.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/21813004
http://code.google.com/p/v8/source/detail?r=16041

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Fri Aug  2 04:56:35 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Mon Aug  5 01:59:55 2013
@@ -957,8 +957,9 @@

// Push the new increment value on the expression stack to merge into the phi.
   builder_->environment()->Push(increment_);
-  builder_->current_block()->GotoNoSimulate(header_block_);
-  header_block_->loop_information()->RegisterBackEdge(body_block_);
+  HBasicBlock* last_block = builder_->current_block();
+  last_block->GotoNoSimulate(header_block_);
+  header_block_->loop_information()->RegisterBackEdge(last_block);

   builder_->set_current_block(exit_block_);
   // Pop the phi from the expression stack

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to