[all-commits] [llvm/llvm-project] 2124b2: [JumpThreading] Avoid ConstantExpr::get() (NFCI)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 29 07:43:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2124b2f0e6083470cf27448e4217706ee646ab03
      https://github.com/llvm/llvm-project/commit/2124b2f0e6083470cf27448e4217706ee646ab03
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp

  Log Message:
  -----------
  [JumpThreading] Avoid ConstantExpr::get() (NFCI)

This code requires the result to be an UndefValue/ConstantInt
anyway (checked by getKnownConstant), so we are only interested
in the case where this folds.




More information about the All-commits mailing list