[all-commits] [llvm/llvm-project] 2de368: [InstCombine] FoldShiftByConstant - merge equivale...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 12 10:19:19 PDT 2020


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

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

  Log Message:
  -----------
  [InstCombine] FoldShiftByConstant - merge equivalent types. NFCI.

Consistently use the original shift instruction's Type/BitWidth instead of the operands, casted values etc.


  Commit: 24dd0cd1edd5e5a2cb3cc361c76a3751b4896132
      https://github.com/llvm/llvm-project/commit/24dd0cd1edd5e5a2cb3cc361c76a3751b4896132
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

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

  Log Message:
  -----------
  [InstCombine] FoldShiftByConstant - create Scalar/Vector constant with ConstantInt::get(). NFCI.

There's no need to create constant vector splats manually.


Compare: https://github.com/llvm/llvm-project/compare/c27ab339ad8f...24dd0cd1edd5


More information about the All-commits mailing list