Displaying 1 result from an estimated 1 matches for "population_next".
2008 Mar 31
5
[LLVMdev] Additional Optimization I'm Missing?
...about optimization passes. I
initially have this function I've created, in python it looks like this:
OS_end = 50OS_start = 0OS_timestep = 1birth_rate = .3population =
30.0for time in range(OS_start, OS_end, OS_timestep):
births = birth_rate * population
deaths = 0.1 * population
population_NEXT = population + births - deaths
#generally put print statements here
#updating stocks
population = population_NEXT
Then I can turn it into LLVM IR:
define void @simulate() {
entry:
%time = alloca double ; <double*> [#uses=4]
%population_next = alloca double ; <double*&...