[all-commits] [llvm/llvm-project] c15ccf: [InstCombine] Fix select + cast fold with constant...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Aug 14 08:44:42 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c15ccfb24afa67d3c3f54e52cc1d1afa564715ed
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/binop-select-cast-of-select-cond.ll

  Log Message:
  [InstCombine] Fix select + cast fold with constant expression (PR64669)

The zext constant expression was detected by the fold, but then
handled as a sext. Use ZExtOperator instead of ZExtInst to handle
constant expressions.

Fixes https://github.com/llvm/llvm-project/issues/64669.

More information about the All-commits mailing list