[all-commits] [llvm/llvm-project] c2f7e9: [SelectionDAG] Don't convert sextload to zextload ...

Iris Shi via All-commits all-commits at lists.llvm.org
Sat May 9 08:00:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2f7e989431dea8eee88be3ba73fb6c89859ca6a
      https://github.com/llvm/llvm-project/commit/c2f7e989431dea8eee88be3ba73fb6c89859ca6a
  Author: Iris Shi <0.0 at owo.li>
  Date:   2026-05-09 (Sat, 09 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/reduce-load-width-freeze.ll

  Log Message:
  -----------
  [SelectionDAG] Don't convert sextload to zextload through a multi-use freeze (#196700)

Resolves #196590.

The patch https://github.com/llvm/llvm-project/pull/189317 to teach
DAGCombiner to look through freeze incorrectly introduce a miscompile of
sext -> zext. This resolves resolves the miscompile.



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