Displaying 3 results from an estimated 3 matches for "bf925be4".
2011 Jul 27
2
[LLVMdev] XOR Optimization
...ailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110726/bf925be4/attachment.html>
2011 Jul 26
0
[LLVMdev] XOR Optimization
Hi Duncan,
when I run "opt -std-compile-opts" on the original source code it has the
same output of O3.
when I run "opt -std-compile-opts" on the -O3 optimized code, things get
even more weird, it outputs the following code:
while.body: ; preds = %while.body,
%entry
%indvar = phi i32 [ 0, %entry ], [ %indvar.next.3, %while.body ]
%tmp
2011 Jul 26
2
[LLVMdev] XOR Optimization
Hi Daniel,
> Precisely. The code generated by unrolling can be folded into a single XOR and
> SHL. And even if it was not inside a loop, it can still be optimized. What I
> want to know is: is there any optimization supposed to optimize this code, but
> for some reason it thinks it is not possible, or there is no optimization for
> that situation at all?
it could be a phase