[LLVMdev] conditionally reduced intrinsics
Brian R. Gaeke
gaeke at uiuc.edu
Sat Aug 21 21:07:16 PDT 2004
> Ok, I am developing an intrinsic instruction and I have the codegen
> working (and tested). However, some of the more complex cases of the
> intrinsic are reducable to LLVM + simpler cases of the intrinsic. How
> would I go about conditionally reducing the intrinsic? I could deal
> with the issue in the codegen, but that gets ugly quickly.
>
> Andrew
I suppose you could do an LLVM->LLVM lowering pass which reduces the
complex cases to the simple cases. This would then allow you to use
the redundancy-elimination passes like LICM to clean up the resulting
code.
-Brian
--
gaeke at uiuc.edu
More information about the llvm-dev
mailing list