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

Side by Side Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 1997443002: Subzero: Initial implementation of BB Local CSE (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Final touches Created 4 years, 7 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/IceOperand.h ('k') | src/IceTimerTree.def » ('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/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==//
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 436 }
437 437
438 genTargetHelperCalls(); 438 genTargetHelperCalls();
439 Func->dump("After target helper call insertion"); 439 Func->dump("After target helper call insertion");
440 440
441 // Merge Alloca instructions, and lay out the stack. 441 // Merge Alloca instructions, and lay out the stack.
442 static constexpr bool SortAndCombineAllocas = true; 442 static constexpr bool SortAndCombineAllocas = true;
443 Func->processAllocas(SortAndCombineAllocas); 443 Func->processAllocas(SortAndCombineAllocas);
444 Func->dump("After Alloca processing"); 444 Func->dump("After Alloca processing");
445 445
446 if (getFlags().getEnableExperimental()) {
447 Func->localCSE();
448 Func->dump("After Local CSE");
449 }
450
446 if (!getFlags().getEnablePhiEdgeSplit()) { 451 if (!getFlags().getEnablePhiEdgeSplit()) {
447 // Lower Phi instructions. 452 // Lower Phi instructions.
448 Func->placePhiLoads(); 453 Func->placePhiLoads();
449 if (Func->hasError()) 454 if (Func->hasError())
450 return; 455 return;
451 Func->placePhiStores(); 456 Func->placePhiStores();
452 if (Func->hasError()) 457 if (Func->hasError())
453 return; 458 return;
454 Func->deletePhis(); 459 Func->deletePhis();
455 if (Func->hasError()) 460 if (Func->hasError())
(...skipping 7486 matching lines...) Expand 10 before | Expand all | Expand 10 after
7942 emitGlobal(*Var, SectionSuffix); 7947 emitGlobal(*Var, SectionSuffix);
7943 } 7948 }
7944 } 7949 }
7945 } break; 7950 } break;
7946 } 7951 }
7947 } 7952 }
7948 } // end of namespace X86NAMESPACE 7953 } // end of namespace X86NAMESPACE
7949 } // end of namespace Ice 7954 } // end of namespace Ice
7950 7955
7951 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H 7956 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H
OLDNEW
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTimerTree.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698