[all-commits] [llvm/llvm-project] 1e68d3: Revert "[InstCombine] "Bypass" NUW trunc of lshr i...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Tue Apr 20 15:11:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e68d338c15e2c8aa4547dc8681016bc23464d89
      https://github.com/llvm/llvm-project/commit/1e68d338c15e2c8aa4547dc8681016bc23464d89
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  Revert "[InstCombine] "Bypass" NUW trunc of lshr if we are going to sext the result (PR49543)"

I forgot about the case where we sign-extend to width smaller than the original.

This reverts commit 41b71f718b94c6f12bbaa670e97cabb070308ed2.


  Commit: 5a654bfeab588715fa6d266a7789484850605a18
      https://github.com/llvm/llvm-project/commit/5a654bfeab588715fa6d266a7789484850605a18
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/sext-of-trunc-nsw.ll

  Log Message:
  -----------
  Revert "[InstCombine] `sext(trunc(x)) --> sext(x)` iff trunc is NSW (PR49543)"

I forgot about the case where we sign-extend to width smaller than the original.

This reverts commit 1e6ca23ab8e350c7bab5d7f93e4d3dee18d180cc.


Compare: https://github.com/llvm/llvm-project/compare/d87b9b81ccb9...5a654bfeab58


More information about the All-commits mailing list