[all-commits] [llvm/llvm-project] b87110: [SimplifyCFG] Avoid use of ConstantExpr::getIntege...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 03:55:29 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp

  Log Message:
  -----------
  [SimplifyCFG] Avoid use of ConstantExpr::getIntegerCast() (NFC)

We're working on a ConstantInt here, so constant folding will
always succeed. Just avoid using the ConstantExpr API.




More information about the All-commits mailing list