[all-commits] [llvm/llvm-project] 2e604d: [Analysis] findAffectedValues - remove unused Cons...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Oct 13 06:57:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e604d23b42e2b59b8884c7b4c2f27b62cba5fe3
      https://github.com/llvm/llvm-project/commit/2e604d23b42e2b59b8884c7b4c2f27b62cba5fe3
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M llvm/lib/Analysis/AssumptionCache.cpp

  Log Message:
  -----------
  [Analysis] findAffectedValues - remove unused ConstantInt argument. NFCI.

We can use m_ConstantInt without a result value as we don't ever use it.


  Commit: 9c3138bd6d8b3e303f0f711753506b330ffa8df0
      https://github.com/llvm/llvm-project/commit/9c3138bd6d8b3e303f0f711753506b330ffa8df0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M llvm/include/llvm/IR/Constant.h
    M llvm/lib/IR/Constants.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/cast.ll
    M llvm/test/Transforms/InstCombine/trunc-shift-trunc.ll

  Log Message:
  -----------
  [InstCombine] visitTrunc - pass through undefs for trunc(shift(trunc/ext(x),c)) patterns

Based on the recent patches D88475 and D88429 where we are losing undef values due to extension/comparisons.

I've added a Constant::mergeUndefsWith method that merges the undef scalar/elements from another Constant into a specific Constant.

Differential Revision: https://reviews.llvm.org/D88687


Compare: https://github.com/llvm/llvm-project/compare/f84c77f424e1...9c3138bd6d8b


More information about the All-commits mailing list