[all-commits] [llvm/llvm-project] 62735d: [DAGCombine] Correctly extend the constant RHS in ...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Aug 9 10:24:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62735d26b1a1bdb5d03c594c958a0d01a4f8b486
      https://github.com/llvm/llvm-project/commit/62735d26b1a1bdb5d03c594c958a0d01a4f8b486
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-08-10 (Sun, 10 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    A llvm/test/CodeGen/X86/pr152630.ll

  Log Message:
  -----------
  [DAGCombine] Correctly extend the constant RHS in `TargetLowering::SimplifySetCC` (#152862)

In https://github.com/llvm/llvm-project/pull/150270, when the predicate
is eq/ne and the trunc has only an nsw flag, the RHS is incorrectly
zero-extended.

Closes https://github.com/llvm/llvm-project/issues/152630.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list