search for: imlplementation

Displaying 2 results from an estimated 2 matches for "imlplementation".

2017 Jul 25
2
loop canonical variables
...astasiya.ruzhanskaya at frtk.ru>: >> I call this function and it returns only "i" in my example. Are there any >> ways to return "j" also? > > That would contradict it being the /canonical/ induction variable, wouldn't it? > > If you look into the imlplementation of > getCanonicalInductionVariable(), it just walks the IR instructions and > checks some conditions. You can have your own implementation that, > instead of returning the first matching PHI, return all matching PHIs. > SimplifyIndVar won't try to canonicalize, though. > > Mic...
2017 Jul 25
2
loop canonical variables
I call this function and it returns only "i" in my example. Are there any ways to return "j" also? 2017-07-25 19:11 GMT+02:00 Michael Kruse <llvmdev at meinersbur.de>: > There is Loop::getCanonicalInductionVariable() > > You may need to run the "-indvars" (IndVarSimplify) pass before it > returns a value. I am not sure it normalizes the step size