[all-commits] [llvm/llvm-project] c7f0e4: [InstCombine] Fix canAlwaysEvaluateInTy() with con...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 06:53:08 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/zext.ll

  Log Message:
  -----------
  [InstCombine] Fix canAlwaysEvaluateInTy() with constant exprs

The m_ZExtOrSExt / m_Trunc in the following code can match constant
expressions, which we don't want here. Make sure we bail out early
for non-immediate constants.




More information about the All-commits mailing list