[all-commits] [llvm/llvm-project] b610d7: [InstCombine] visitTrunc - remove dead trunc(lshr ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Sep 29 09:17:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b610d73b3fe67fe6b693740dfac5fd21a60b1e44
      https://github.com/llvm/llvm-project/commit/b610d73b3fe67fe6b693740dfac5fd21a60b1e44
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

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

  Log Message:
  -----------
  [InstCombine] visitTrunc - remove dead trunc(lshr (zext A), C) combine. NFCI.

I added additional test coverage at rG7a55989dc4305 - but all are handled independently of this combine and http://lab.llvm.org:8080/coverage/coverage-reports/ indicates the code is never used.

Differential revision: https://reviews.llvm.org/D88492


  Commit: e5f047f27ec121e63e765d30683a472d1ba19ca5
      https://github.com/llvm/llvm-project/commit/e5f047f27ec121e63e765d30683a472d1ba19ca5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M llvm/test/Transforms/InstCombine/trunc-shift-trunc.ll

  Log Message:
  -----------
  [InstCombine] Fix the outofrange tests and add exact shift tests for D88429


Compare: https://github.com/llvm/llvm-project/compare/ccbb9827db4c...e5f047f27ec1


More information about the All-commits mailing list