Displaying 1 result from an estimated 1 matches for "threadbinopoverselect".
2010 Nov 11
5
[LLVMdev] Simplifying selects + arm stuff
...nsider the following example:
>
> %z = and i32 %x, %y
> %s = select i1 %cond, i32 %y, i32 %z
> %r = and i32 %x, %s
>
> Here %r could be simplified to
> %r = and i32 %x, %y
> (i.e. the same as %z) so replaced with %z everywhere.
>
> We even have logic to do this (ThreadBinOpOverSelect, which I just added) in
> InstructionSimplify. The nice thing about InstructionSimplify is that it
> doesn't ever create any new instructions, so is pretty much always a win.
> The problem is that the logic never fires: your instcombine logic gets there
> first, and transforms the...