[llvm] [LoopVectorize][LAA] Hoist load in memory IV to allow vectorization (PR #168312)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 00:20:44 PST 2025


https://github.com/fhahn commented:

I'm curious what the original C/C++ source code looks like. Is there anything we are missing to enable hoisting/sinking earlier?

After a first look, I am not sure LAA is the best place to add this hoisting detection, as it adds quite a bit of complexity and coupling spread out across LAA and LV. But I need to think about it a bit more to see what possible alternatives are.

https://github.com/llvm/llvm-project/pull/168312


More information about the llvm-commits mailing list