search for: exec0

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

Did you mean: exec
2010 Nov 23
2
[LLVMdev] Unrolling an arithmetic expression inside a loop
Hello, I've been redirected from cfe-dev, as code optimizations in clang are done in llvm layer. I'm investigating how optimized code clang generates, and have come across such an example: I have two procedures: void exec0(const int *X, const int *Y, int *res, const int N) { int t1[N],t2[N],t3[N],t4[N],t5[N],t6[N]; for(int i = 0; i < N; i++) { t1[i] = X[i]+Y[i]; // X+Y t2[i] = t1[i]*Y[i]; // XY + Y2 t3[i] = X[i]*Y[i]; // XY t4[i] = Y[i]*Y[i];...
2011 Oct 22
0
[LLVMdev] Instruction Scheduling Itineraries
...d to express latency here. (I'm only showing the pipeline stages here, not the operand latency list). Let's say you want to treat each stage of a pipeline as a separate type of unit: stage0: Decode stage1: Exec stage2: Write [InstrStage<1, [Decode0, Decode1], 0>, InstrStage<1, [Exec0, Exec1], 0>, InstrStage<1, [Write0, Write1, 0]>] Now when the first instruction is scheduled, it fills in the current row of the reservation table with Decode0, Exec0, Write0. This is counterintuitive because the instruction does not execute on all units in the same cycle, but it results...