[all-commits] [llvm/llvm-project] 730654: [InstCombine] add tests for zext-of-icmp; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Jan 9 13:30:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73065414eff11ad2cf4ec3b0167915fbd8f60a84
      https://github.com/llvm/llvm-project/commit/73065414eff11ad2cf4ec3b0167915fbd8f60a84
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/zext.ll

  Log Message:
  -----------
  [InstCombine] add tests for zext-of-icmp; NFC


  Commit: a4f3b236719529bdc987d4f347e8711c27587ce4
      https://github.com/llvm/llvm-project/commit/a4f3b236719529bdc987d4f347e8711c27587ce4
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

  Log Message:
  -----------
  [InstCombine] simplify code and fix formatting; NFC


  Commit: f400daae902875b488c92b13322e39f41eb20934
      https://github.com/llvm/llvm-project/commit/f400daae902875b488c92b13322e39f41eb20934
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/zext.ll

  Log Message:
  -----------
  [InstCombine] limit zext-of-icmp folds to bit-hacks

In the changed tests, we avoid creating extra instructions,
and there are no obvious regressions in IR tests at least.

Codegen should be able to create the shift+mask form if that
is profitable.

This is a more general fix for issue #59897 than 0eedc9e56712 .


Compare: https://github.com/llvm/llvm-project/compare/315756b5da89...f400daae9028


More information about the All-commits mailing list