Displaying 4 results from an estimated 4 matches for "a_factor".
2017 Mar 15
2
Speculative execution of FP divide Instructions - Call-Graph Simplify
...Simplify Pass. Here is a a
small repro:
```
define double @foo(double %a1, double %a2, double %a3) #0 {
entry:
%a_mul = fmul double %a1, %a2
%a_cmp = fcmp ogt double %a3, %a_mul
br i1 %a_cmp, label %a.then, label %a.end
a.then:
%a_div = fdiv double %a_mul, %a3
br label %a.end
a.end:
%a_factor = phi double [ %a_div, %a.then ], [ 1.000000e+00, %entry ]
ret double %a_factor
}
```
Here, the conditional is guarding a possible division by zero. However if I
run CGSimplify on this I get:
```
define double @foo(double %a1, double %a2, double %a3) local_unnamed_addr
#0 {
entry:
%a_mul = fmul...
2017 Mar 15
3
Speculative execution of FP divide Instructions - Call-Graph Simplify
...3) #0 {
>> entry:
>> %a_mul = fmul double %a1, %a2
>> %a_cmp = fcmp ogt double %a3, %a_mul
>> br i1 %a_cmp, label %a.then, label %a.end
>>
>> a.then:
>> %a_div = fdiv double %a_mul, %a3
>> br label %a.end
>>
>> a.end:
>> %a_factor = phi double [ %a_div, %a.then ], [ 1.000000e+00, %entry ]
>> ret double %a_factor
>> }
>> ```
>> Here, the conditional is guarding a possible division by zero.
>> However if I run CGSimplify on this I get:
>> ```
>> define double @foo(double %a1, double...
2017 Mar 15
2
Speculative execution of FP divide Instructions - Call-Graph Simplify
...Simplify Pass. Here is a a small repro:
```
define double @foo(double %a1, double %a2, double %a3) #0 {
entry:
%a_mul = fmul double %a1, %a2
%a_cmp = fcmp ogt double %a3, %a_mul
br i1 %a_cmp, label %a.then, label %a.end
a.then:
%a_div = fdiv double %a_mul, %a3
br label %a.end
a.end:
%a_factor = phi double [ %a_div, %a.then ], [ 1.000000e+00, %entry ]
ret double %a_factor
}
```
Here, the conditional is guarding a possible division by zero. However if I run CGSimplify on this I get:
```
define double @foo(double %a1, double %a2, double %a3) local_unnamed_addr #0 {
entry:
%a_mul = fmul...
2008 Sep 16
2
Setting user colors in barchart
...olor in the lattice package. I
read the ?barchart help page and searched the R archives but could not
understand how to do it.
I just need to plot a barchart using specific colors for my groups, e.g.
green and red instead of the default lattice colors. How do I do that?
If I say:
barchart(x ~ a_factor, groups=my_groups, data=my_data, col=c('green',
'red'), auto.key=TRUE)
then my barplot has the correct colors, but the legend does not. What is the
correct approach to set colors in barchart?
Thanks
Alex
[[alternative HTML version deleted]]