Changeset 231154 in webkit
- Timestamp:
- Apr 29, 2018 4:41:55 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r231147 r231154 1 2018-04-29 Filip Pizlo <fpizlo@apple.com> 2 3 B3 should run tail duplication at the bitter end 4 https://bugs.webkit.org/show_bug.cgi?id=185123 5 6 Reviewed by Geoffrey Garen. 7 8 Also added an option to disable taildup. This appears to be a 1% AsmBench speed-up. It's neutral 9 everywhere else. 10 11 The goal of this change is to allow us to run path specialization after switch lowering but 12 before tail duplication. 13 14 * b3/B3Generate.cpp: 15 (JSC::B3::generateToAir): 16 * runtime/Options.h: 17 1 18 2018-04-29 Commit Queue <commit-queue@webkit.org> 2 19 -
trunk/Source/JavaScriptCore/b3/B3Generate.cpp
r231116 r231154 81 81 if (shouldValidateIR()) 82 82 validate(procedure); 83 83 84 84 if (procedure.optLevel() >= 2) { 85 85 reduceDoubleToFloat(procedure); … … 88 88 if (eliminateCommonSubexpressions(procedure)) 89 89 eliminateCommonSubexpressions(procedure); 90 foldPathConstants(procedure);91 reduceStrength(procedure);92 90 inferSwitches(procedure); 93 duplicateTails(procedure);94 fixSSA(procedure);95 foldPathConstants(procedure);96 91 97 92 // FIXME: Add more optimizations here. … … 106 101 107 102 if (procedure.optLevel() >= 2) { 103 reduceStrength(procedure); 104 if (Options::useB3TailDup()) 105 duplicateTails(procedure); 106 fixSSA(procedure); 107 foldPathConstants(procedure); 108 108 reduceStrength(procedure); 109 109 -
trunk/Source/JavaScriptCore/runtime/Options.h
r231047 r231154 438 438 v(bool, coalesceSpillSlots, true, Normal, nullptr) \ 439 439 v(bool, logAirRegisterPressure, false, Normal, nullptr) \ 440 v(bool, useB3TailDup, true, Normal, nullptr) \ 440 441 v(unsigned, maxB3TailDupBlockSize, 3, Normal, nullptr) \ 441 442 v(unsigned, maxB3TailDupBlockSuccessors, 3, Normal, nullptr) \
Note: See TracChangeset
for help on using the changeset viewer.