[all-commits] [llvm/llvm-project] 702ccb: [InstCombine] getLogBase2(undef) -> 0.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Oct 10 12:33:07 PDT 2020


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

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

  Log Message:
  -----------
  [InstCombine] getLogBase2(undef) -> 0.

Move the undef element handling into the getLogBase2 helper instead of pre-empting with replaceUndefsWith.




More information about the All-commits mailing list