[all-commits] [llvm/llvm-project] 7485f3: [X86] X86ISelDAGToDAG - don't let ADD/SUB(X, 1) -> ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Nov 23 07:04:27 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7485f34802f0ea1e00ac69499050e79692609b85
      https://github.com/llvm/llvm-project/commit/7485f34802f0ea1e00ac69499050e79692609b85
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-11-23 (Sun, 23 Nov 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
    A llvm/test/CodeGen/X86/pr169205.ll

  Log Message:
  -----------
  [X86] X86ISelDAGToDAG - don't let ADD/SUB(X,1) -> SUB/ADD(X,-1) constant fold (#169217)

Extension to #168726 - ensure we peek through bitcasts to look for
constants (as constant folding will)

DAG should have constant folded this, but we're still fighting the lack
of proper topological sorting.

Fixes #169205



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