4 ms·
there is no way a general purpose compiler will figure this out. op is probably talking about something like halide or tvm or torchscript jit.
by kanaffa12345 5y ago
there is no way a general purpose compiler will figure this out. op is probably talking about something like halide or tvm or torchscript jit.
- deleted 5y ago[deleted]
- astrange 5y agohttps://polly.llvm.org https://polly.llvm.org is a research project that could possibly maybe do this.
- kanaffa12345 5y agoa polyhedral compiler wouldn't find this either - polyhedral compilation is for finding optimal schedules for loop nests i.e., the order in which independent (wrt dataflow) iterations run. as far as i know you, a transpose can't be expressed in the polyhedral model.
- astrange 5y agoHmm I thought GCC's polyhedral optimizations had a loop transposition, but it turned out I was remembering an old "-floop-transpose" flag that seems to be only in old Apple GCC to get a SPEC win…