[all-commits] [llvm/llvm-project] 284a83: [SelectionDAG] Track bitcast demanded elements in ...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Fri Jun 5 12:09:30 PDT 2026


  Branch: refs/heads/users/krzysz00/bitcast-not-undef-poison
  Home:   https://github.com/llvm/llvm-project
  Commit: 284a83b76ca9ebd5f1566ad7168d66fae397d897
      https://github.com/llvm/llvm-project/commit/284a83b76ca9ebd5f1566ad7168d66fae397d897
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/X86/freeze-vector.ll

  Log Message:
  -----------
  [SelectionDAG] Track bitcast demanded elements in noundef tests

Bitcasts preserve undef/poison status, but vector bitcasts can change
which source lanes cover a demanded result lane. Map the demanded
element mask through fixed-length vector bitcasts before checking the
source where possible.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>


  Commit: 123e890e9b8eb273d6298acb82ce2cf8a7f1b404
      https://github.com/llvm/llvm-project/commit/123e890e9b8eb273d6298acb82ce2cf8a7f1b404
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  Review style etc.


Compare: https://github.com/llvm/llvm-project/compare/797eef56bf67...123e890e9b8e

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