[all-commits] [llvm/llvm-project] e2165e: [InstCombine] remove trunc user restriction for ma...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed Jan 5 10:04:25 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2165e096869ef5bd5150c150a1cbfc25f693a0f
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/Transforms/InstCombine/bswap.ll

  Log Message:
  [InstCombine] remove trunc user restriction for match of bswap

This does not appear to cause any problems, and it
fixes #50910

Extra tests with a trunc user were added with:
...but they don't match either way, so there's an
opportunity to improve the matching further.

More information about the All-commits mailing list