[LLVMdev] Induction Variables

David Crowe dcrowe at crhc.uiuc.edu
Mon Sep 8 10:20:02 PDT 2003


LLVM,

What is the status of the InductionVariable "semi-pass"?  I have tested
it out on spec benchmarks, and while it does correctly identify some of
the variables, it fails to recognize most.  Typically the following
scenario arises

a_loop:
...
%tmp.19 = load int* %bsLive
%tmp.20 = add int %tmp.19, -8
store int %tmp.20, int* %bsLive
%tmp.5 = setgt int %tmp.20, 0
br bool %tmp.5, label a_loop, label a_exit

a_exit:

Is there any way to force this variable to stay in a register, such that
it is handled with a phi node, and recognized by the InductionVariable
class?

Thanks,
Dave




More information about the llvm-dev mailing list