search for: r275989

Displaying 3 results from an estimated 3 matches for "r275989".

2016 Jul 21
2
Remove zext-unfolding from InstCombine
...gt i64 %a, %b %2 = zext i1 %1 to i8 %3 = icmp slt i64 %a, %c %4 = zext i1 %3 to i8 %5 = and i8 %2, %4 ``` would not be able to be transformed, even though the contained `zext icmp` pairs will also not be able to be optimized by `transformZExtICmp()` above, and the casts will survive. Therefore, in r275989 (https://reviews.llvm.org/D22511) I tried to narrow the check in `foldCastedBitwiseLogic()` to allow the folding of casts in the presence of icmps. For the above example this would result in: ``` %1 = icmp sgt i64 %a, %b %2 = icmp slt i64 %a, %c %3 = and i1 %1, %2 %4 = zext i1 %3 to i8 ``` Despit...
2016 Jul 27
2
Remove zext-unfolding from InstCombine
...to i8 > %3 = icmp slt i64 %a, %c > %4 = zext i1 %3 to i8 > %5 = and i8 %2, %4 > ``` > > would not be able to be transformed, even though the contained `zext icmp` pairs will also not be able to be optimized by `transformZExtICmp()` above, and the casts will survive. Therefore, in r275989 (https://reviews.llvm.org/D22511) I tried to narrow the check in `foldCastedBitwiseLogic()` to allow the folding of casts in the presence of icmps. For the above example this would result in: > > ``` > %1 = icmp sgt i64 %a, %b > %2 = icmp slt i64 %a, %c > %3 = and i1 %1, %2 > %4...
2016 Aug 04
2
Remove zext-unfolding from InstCombine
...i64 %a, %c > > %4 = zext i1 %3 to i8 > > %5 = and i8 %2, %4 > > ``` > > > > would not be able to be transformed, even though the contained `zext icmp` pairs will also not be able to be optimized by `transformZExtICmp()` above, and the casts will survive. Therefore, in r275989 (https://reviews.llvm.org/D22511) I tried to narrow the check in `foldCastedBitwiseLogic()` to allow the folding of casts in the presence of icmps. For the above example this would result in: > > > > ``` > > %1 = icmp sgt i64 %a, %b > > %2 = icmp slt i64 %a, %c > > %3...