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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 2124973005: Selectively invert ICMP operands for better address optimization (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Address Comments Created 4 years, 5 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 | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 for (CfgNode *Node : Func->getNodes()) { 337 for (CfgNode *Node : Func->getNodes()) {
338 Context.init(Node); 338 Context.init(Node);
339 while (!Context.atEnd()) { 339 while (!Context.atEnd()) {
340 PostIncrLoweringContext _(Context); 340 PostIncrLoweringContext _(Context);
341 genTargetHelperCallFor(iteratorToInst(Context.getCur())); 341 genTargetHelperCallFor(iteratorToInst(Context.getCur()));
342 } 342 }
343 } 343 }
344 } 344 }
345 345
346 void TargetLowering::doAddressOpt() { 346 void TargetLowering::doAddressOpt() {
347 doAddressOptOther();
347 if (llvm::isa<InstLoad>(*Context.getCur())) 348 if (llvm::isa<InstLoad>(*Context.getCur()))
348 doAddressOptLoad(); 349 doAddressOptLoad();
349 else if (llvm::isa<InstStore>(*Context.getCur())) 350 else if (llvm::isa<InstStore>(*Context.getCur()))
350 doAddressOptStore(); 351 doAddressOptStore();
351 Context.advanceCur(); 352 Context.advanceCur();
352 Context.advanceNext(); 353 Context.advanceNext();
353 } 354 }
354 355
355 void TargetLowering::doNopInsertion(RandomNumberGenerator &RNG) { 356 void TargetLowering::doNopInsertion(RandomNumberGenerator &RNG) {
356 Inst *I = iteratorToInst(Context.getCur()); 357 Inst *I = iteratorToInst(Context.getCur());
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 case TARGET_LOWERING_CLASS_FOR(X): \ 938 case TARGET_LOWERING_CLASS_FOR(X): \
938 return ::X::createTargetHeaderLowering(Ctx); 939 return ::X::createTargetHeaderLowering(Ctx);
939 #include "SZTargets.def" 940 #include "SZTargets.def"
940 #undef SUBZERO_TARGET 941 #undef SUBZERO_TARGET
941 } 942 }
942 } 943 }
943 944
944 TargetHeaderLowering::~TargetHeaderLowering() = default; 945 TargetHeaderLowering::~TargetHeaderLowering() = default;
945 946
946 } // end of namespace Ice 947 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698