[COMMITTED] [PR tree-optimization/107052] range-ops: Pass nonzero masks through cast.

2022-10-05 Thread Aldy Hernandez via Gcc-patches
Track nonzero masks through a cast in range-ops. We could also track through a truncating cast if the mask fits in the outer type. I will do that as a follow-up patch because I already have this patchset tested. PR tree-optimization/107052 gcc/ChangeLog: * range-op.cc (operator

[COMMITTED] [PR tree-optimization/107052] range-ops: Pass nonzero masks through cast.

2022-10-05 Thread Aldy Hernandez via Gcc-patches
Track nonzero masks through a cast in range-ops. We could also track through a truncating cast if the mask fits in the outer type. I will do that as a follow-up patch because I already have this patchset tested. PR tree-optimization/107052 gcc/ChangeLog: * range-op.cc (operator