[LLVMdev] loop fusion
Devang Patel
dpatel at apple.com
Wed Sep 8 10:21:14 PDT 2010
Andrew,
There is not any transformation in LLVM that does loop fusion. I do not of anyone who is working on this. If you're interested to work on it then it'd be great!
-
Devang
On Sep 8, 2010, at 9:34 AM, Andrew Clinton wrote:
> I did find this note from 2004 that references a LoopFusion pass, but I
> can't find it in the source code:
> http://nondot.org/sabre/LLVMNotes/LoopOptimizerNotes.txt
>
> A little background - I'm working on a SIMD runtime, where I have a
> scalar program but need to execute it on multiple independent data
> elements. One approach is to generate a loop for each operation, then
> rely on the optimizer to merge the loops so that I get good locality.
> Does this sound like a reasonable approach in LLVM? If you're familiar
> with CUDA, I'm after something quite similar where the program is scalar
> but the runtime is vectorized. Any pointers in the right direction
> would be appreciated!
>
> Andrew
>
More information about the llvm-dev
mailing list