Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Issue 10565025: Fix GVN for loops. (Closed)

Created:
8 years, 6 months ago by ngeoffray
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix GVN for loops.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M lib/compiler/implementation/ssa/optimize.dart View 1 chunk +6 lines, -0 lines 2 comments Download
A tests/language/gvn_test.dart View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
Hi Mads! Couldn't resist finding out what went wrong with your CL :) This patch ...
8 years, 6 months ago (2012-06-17 23:28:41 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/10565025/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10565025/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode945 lib/compiler/implementation/ssa/optimize.dart:945: successorValues.kill(changesFlags); Would it make sense to do a ...
8 years, 6 months ago (2012-06-18 05:51:33 UTC) #2
kasperl
... and I hope I can convince Mads to land this :-)
8 years, 6 months ago (2012-06-18 07:06:56 UTC) #3
Mads Ager (google)
LGTM. I'll incorporate this into the other change and land. Thanks Nicolas! :)
8 years, 6 months ago (2012-06-18 07:13:45 UTC) #4
Mads Ager (google)
8 years, 6 months ago (2012-06-18 08:01:13 UTC) #5
https://chromiumcodereview.appspot.com/10565025/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/optimize.dart (right):

https://chromiumcodereview.appspot.com/10565025/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/optimize.dart:945:
successorValues.kill(changesFlags);
On 2012/06/18 05:51:33, kasperl wrote:
> Would it make sense to do a fast check (changesFlags == 0) here too? Or should
> we move the check to ValueSet.kill instead (early bailout)?

Added early bailout to ValueSet.kill and called it unconditionally in all three
places.

Powered by Google App Engine
This is Rietveld 408576698