[LLVMdev] constant folding for standard math functions
Jochen Wilhelmy
j.wilhelmy at arcor.de
Mon Mar 1 09:44:54 PST 2010
Hi!
I'd like to replace all calls to standard math functions (e.g. sin(0.5)) by
their result.
What strategy do you recommend?
Should I write a pass that does only this or should I copy and
modify the SCCP pass?
A problem with an extra pass could be that that I need to alternate
my pass and SCCP several times since the results of the math functions
could be folded again.
-Jochen
More information about the llvm-dev
mailing list