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

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

Issue 1361913003: [arm] Optimize vcmp 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
« no previous file with comments | « no previous file | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 case kSignedGreaterThan: 213 case kSignedGreaterThan:
214 return gt; 214 return gt;
215 case kUnsignedLessThan: 215 case kUnsignedLessThan:
216 return lo; 216 return lo;
217 case kUnsignedGreaterThanOrEqual: 217 case kUnsignedGreaterThanOrEqual:
218 return hs; 218 return hs;
219 case kUnsignedLessThanOrEqual: 219 case kUnsignedLessThanOrEqual:
220 return ls; 220 return ls;
221 case kUnsignedGreaterThan: 221 case kUnsignedGreaterThan:
222 return hi; 222 return hi;
223 case kFloatLessThanOrUnordered:
224 return lt;
225 case kFloatGreaterThanOrEqual:
226 return ge;
227 case kFloatLessThanOrEqual:
228 return ls;
229 case kFloatGreaterThanOrUnordered:
230 return hi;
231 case kFloatLessThan:
232 return lo;
233 case kFloatGreaterThanOrEqualOrUnordered:
234 return hs;
235 case kFloatLessThanOrEqualOrUnordered:
236 return le;
237 case kFloatGreaterThan:
238 return gt;
223 case kOverflow: 239 case kOverflow:
224 return vs; 240 return vs;
225 case kNotOverflow: 241 case kNotOverflow:
226 return vc; 242 return vc;
227 default: 243 default:
228 break; 244 break;
229 } 245 }
230 UNREACHABLE(); 246 UNREACHABLE();
231 return kNoCondition; 247 return kNoCondition;
232 } 248 }
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 padding_size -= v8::internal::Assembler::kInstrSize; 1277 padding_size -= v8::internal::Assembler::kInstrSize;
1262 } 1278 }
1263 } 1279 }
1264 } 1280 }
1265 1281
1266 #undef __ 1282 #undef __
1267 1283
1268 } // namespace compiler 1284 } // namespace compiler
1269 } // namespace internal 1285 } // namespace internal
1270 } // namespace v8 1286 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698