[all-commits] [llvm/llvm-project] eb5199: [InstCombine] Avoid some uses of ConstantExpr::get...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 10 06:46:31 PST 2023


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

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

  Log Message:
  -----------
  [InstCombine] Avoid some uses of ConstantExpr::getLShr() (NFC)

Use the constant folding API instead. As we're working on
ImmConstant, it is guaranteed to succeed.




More information about the All-commits mailing list