Displaying 2 results from an estimated 2 matches for "add313".
Did you mean:
add13
2013 Jun 04
3
[LLVMdev] Missing InstCombine optimization.
...55362 pattern #2 is deferred to DAGCombine stage, so InstCombine is unable to apply pattern #4:
4*. ((idx >> 3) << 3) | (idx & 7) -> idx // SimplifyOr can't handle it.
So now LLVM IR contains a couple of redundant operations:
%mul312 = shl nsw i32 %shr, 3 ; hi*8
%add313 = or i32 %mul312, %and ; hi*8 + lo == idx
These few additional operations over index prevent our analysis pass from recognizing memory access patterns and I believe could harm not only us.
I think 4* optimization can be safely done at LLVM IR level.
Can you suggest the best way to fix this issue?...
2013 Jun 04
0
[LLVMdev] Missing InstCombine optimization.
...stCombine is
> unable to apply pattern #4:
>
> 4*. ((idx >> 3) << 3) | (idx & 7) -> idx // SimplifyOr can’t handle
> it.
>
>
>
> So now LLVM IR contains a couple of redundant operations:
>
> %mul312 = shl nsw i32 %shr, 3 ; hi*8
>
> %add313 = or i32 %mul312, %and ; hi*8 + lo == idx
>
>
>
> These few additional operations over index prevent our analysis pass from
> recognizing memory access patterns and I believe could harm not only us.
>
> I think 4* optimization can be safely done at LLVM IR level.
>
> Can...