[all-commits] [llvm/llvm-project] d6d44d: [ConstantFolding] Avoid use of ConstantExpr::getZE...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Sep 28 08:14:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6d44d6f19f2570bf11f1bc9e568a317fe615903
      https://github.com/llvm/llvm-project/commit/d6d44d6f19f2570bf11f1bc9e568a317fe615903
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

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

  Log Message:
  -----------
  [ConstantFolding] Avoid use of ConstantExpr::getZExt() (NFC)

Use the constant folding API instead, which should always succeed
in this case.


  Commit: 7eda63b8143350eb2cac5c4b9588f75f144bcaea
      https://github.com/llvm/llvm-project/commit/7eda63b8143350eb2cac5c4b9588f75f144bcaea
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

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

  Log Message:
  -----------
  [InstCombine] Avoid use of ConstantExpr::getZExt() (NFC)

Check the result of constant folding here, as I'm not confident
that no constant expressions can make it in here.


Compare: https://github.com/llvm/llvm-project/compare/be30cd62a94e...7eda63b81433


More information about the All-commits mailing list