When X is PHI node like the following:
%myValue.0 = phi i32 [ 0, %entry ], [ %inc, %do.body ]
%inc = add nuw nsw i32 %myValue.0, 1
%cmp15 = icmp slt i32 %inc, 255
Misinformed IR will be produced if we fold imp sgt/slt (https://reviews.llvm.org/D29774), this will bring in program regression.
<badref> = icmp slt i32 %myValue.0, 254