[Bug tree-optimization/95246] Failure to optimize comparison between differently signed chars

2020-05-20 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95246 Gabriel Ravier changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug tree-optimization/95246] Failure to optimize comparison between differently signed chars

2020-05-20 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95246 --- Comment #2 from Gabriel Ravier --- Looks like I misread it, LLVM compares `dil` and `sil` with that transformation, not `edi` and `esi` as it does without it. I should stop making bug reports at 1 am... I suppose I should mark thtis as

[Bug tree-optimization/95246] Failure to optimize comparison between differently signed chars

2020-05-20 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95246 --- Comment #1 from Marc Glisse --- On which version of LLVM did you see that? For me, gcc produces movzbl %dil, %edi movsbl %sil, %esi cmpl%esi, %edi setg%al while clang skips the first 2 lines (but