[all-commits] [llvm/llvm-project] 929a12: [ValueTracking] computeKnownBitsFromShiftOperator ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Nov 10 09:16:08 PST 2020


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

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

  Log Message:
  -----------
  [ValueTracking] computeKnownBitsFromShiftOperator - consistently use Known2 for the shifted value. NFCI.

Minor cleanup as part of getting D90479 moving again.


  Commit: 46a734621dc4b38db78156fcd769864f7ef8ac18
      https://github.com/llvm/llvm-project/commit/46a734621dc4b38db78156fcd769864f7ef8ac18
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

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

  Log Message:
  -----------
  [ValueTracking] computeKnownBitsFromShiftOperator - always return with Known2 containing the shifted value source. NFCI.

As detailed on D90479, in most circumstances we will always call computeKnownBits for Op0, so always perform this by pulling out the duplicate calls.


Compare: https://github.com/llvm/llvm-project/compare/c7e275388e3f...46a734621dc4


More information about the All-commits mailing list