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

Unified Diff: src/compiler/ia32/instruction-selector-ia32.cc

Issue 1757213003: [turbofan] Do not produce 2 ops for Int32AddWithOverflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler/ia32/instruction-selector-ia32.cc
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc
index fcb94bd963b4b72068d18d7cec29a2fb21c7eb27..b71c16736071f14d235dd95e801966630f538968 100644
--- a/src/compiler/ia32/instruction-selector-ia32.cc
+++ b/src/compiler/ia32/instruction-selector-ia32.cc
@@ -1329,9 +1329,10 @@ void InstructionSelector::VisitInt32AddWithOverflow(Node* node) {
if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
FlagsContinuation cont = FlagsContinuation::ForSet(kOverflow, ovf);
return VisitBinop(this, node, kIA32Add, &cont);
+ } else {
Benedikt Meurer 2016/03/03 17:48:08 This doesn't seem to be necessary, since there's a
Mircea Trofin 2016/03/03 21:50:13 Ugh... true. Haven't noticed the return.
+ FlagsContinuation cont;
+ VisitBinop(this, node, kIA32Add, &cont);
}
- FlagsContinuation cont;
- VisitBinop(this, node, kIA32Add, &cont);
}
« no previous file with comments | « no previous file | src/compiler/x64/instruction-selector-x64.cc » ('j') | src/compiler/x64/instruction-selector-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698