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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1356283003: [arm64] Optimize fcmp when lhs operand is #0.0 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 case kSignedGreaterThan: 252 case kSignedGreaterThan:
253 return gt; 253 return gt;
254 case kUnsignedLessThan: 254 case kUnsignedLessThan:
255 return lo; 255 return lo;
256 case kUnsignedGreaterThanOrEqual: 256 case kUnsignedGreaterThanOrEqual:
257 return hs; 257 return hs;
258 case kUnsignedLessThanOrEqual: 258 case kUnsignedLessThanOrEqual:
259 return ls; 259 return ls;
260 case kUnsignedGreaterThan: 260 case kUnsignedGreaterThan:
261 return hi; 261 return hi;
262 case kFloatLessThanOrUnordered:
263 return lt;
264 case kFloatGreaterThanOrEqual:
265 return ge;
266 case kFloatLessThanOrEqual:
267 return ls;
268 case kFloatGreaterThanOrUnordered:
269 return hi;
270 case kFloatLessThan:
271 return lo;
272 case kFloatGreaterThanOrEqualOrUnordered:
273 return hs;
274 case kFloatLessThanOrEqualOrUnordered:
275 return le;
276 case kFloatGreaterThan:
277 return gt;
262 case kOverflow: 278 case kOverflow:
263 return vs; 279 return vs;
264 case kNotOverflow: 280 case kNotOverflow:
265 return vc; 281 return vc;
266 case kUnorderedEqual: 282 case kUnorderedEqual:
267 case kUnorderedNotEqual: 283 case kUnorderedNotEqual:
268 break; 284 break;
269 } 285 }
270 UNREACHABLE(); 286 UNREACHABLE();
271 return nv; 287 return nv;
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 padding_size -= kInstructionSize; 1418 padding_size -= kInstructionSize;
1403 } 1419 }
1404 } 1420 }
1405 } 1421 }
1406 1422
1407 #undef __ 1423 #undef __
1408 1424
1409 } // namespace compiler 1425 } // namespace compiler
1410 } // namespace internal 1426 } // namespace internal
1411 } // namespace v8 1427 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698