更新时间:2022-05-04 00:45:51
首先,请注意,llc不会进行任何IR级优化.因此,您应该运行opt来运行IR级优化程序集.
First, note that llc does not do any IR-level optimizations. So, you should run opt to run the set of IR-level optimizers.
但是,opt对此无济于事.我希望标准的IR级优化程序可以将这些东西规范化为gep.
However, opt does not help in this. I'd expect that standard IR-level optimizers canonicalize the stuff into gep somehow.
请提交LLVM PR,这似乎错过了优化!
Please file a LLVM PR, this looks like a missed optimization!