Skip to content

Commit 7405556

Browse files
Mike KleinSkia Commit-Bot
authored andcommitted
set up interpreter after llvm
This gives a little more time for the LLVM compile to run. In practice, it's so little it doesn't matter, but I think I'd rather have this in than not. Change-Id: Ifd813ac7024a2ead306c40471a9046dbd482baaa Reviewed-on: https://skia-review.googlesource.com/c/skia/+/275302 Reviewed-by: Mike Klein <[email protected]> Commit-Queue: Mike Klein <[email protected]>
1 parent 491df6b commit 7405556

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/SkVM.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,12 +2198,16 @@ namespace skvm {
21982198
Program::Program(const std::vector<OptimizedInstruction>& interpreter,
21992199
const std::vector<OptimizedInstruction>& jit,
22002200
const std::vector<int>& strides,
2201-
const char* debug_name) : Program(interpreter, strides) {
2201+
const char* debug_name) : Program() {
2202+
fImpl->strides = strides;
22022203
#if 1 && defined(SKVM_LLVM)
22032204
this->setupLLVM(interpreter, debug_name);
22042205
#elif 1 && defined(SKVM_JIT)
22052206
this->setupJIT(jit, debug_name);
22062207
#endif
2208+
2209+
// Might as well do this after setupLLVM() to get a little more time to compile.
2210+
this->setupInterpreter(interpreter);
22072211
}
22082212

22092213
std::vector<InterpreterInstruction> Program::instructions() const { return fImpl->instructions; }

0 commit comments

Comments
 (0)