Displaying 1 result from an estimated 1 matches for "d47113".
Did you mean:
947113
2018 May 23
0
RFC: should CVP always narrow the width of lshr?
...;
%uadd = add i64 %udiv, %urem
ret i64 %uadd
the CVP will reduce the width of udiv/urem,
without considerations for the new instructions,
or whether the new width is legal for the target.
That was implemented in https://reviews.llvm.org/D44102
As Sanjay Patel notes in https://reviews.llvm.org/D47113#1106601,
> We overlooked these questions in the specific case of div/rem
> (D44102) because we assumed that narrower div/rem are always
> better for analysis and codegen <cut>
Now, there is a caveat.
If <C> is constant, and is a power-of-two, instcombine
will transform udiv to...