[all-commits] [llvm/llvm-project] 016891: [ConstantFold] Remove redundant handling for casts...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 3 03:44:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01689175251f2624fb9d077666657aa21e3f7850
      https://github.com/llvm/llvm-project/commit/01689175251f2624fb9d077666657aa21e3f7850
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp

  Log Message:
  -----------
  [ConstantFold] Remove redundant handling for casts of null (NFCI)

ConstantFoldCastInstruction() has generic handling for null values
at the top. No need to repeat it for inttoptr and ptrtoint.




More information about the All-commits mailing list