[all-commits] [llvm/llvm-project] a8fa91: [X86] Remove shouldCastAtomicLoadInIR; use DAG com...

jofrn via All-commits all-commits at lists.llvm.org
Fri May 29 06:18:40 PDT 2026


  Branch: refs/heads/users/jofrn/x86-remove-shouldcastatomicloadinir-v2
  Home:   https://github.com/llvm/llvm-project
  Commit: a8fa91a7d6caf91059a997344652bef8834e5208
      https://github.com/llvm/llvm-project/commit/a8fa91a7d6caf91059a997344652bef8834e5208
  Author: jofrn <jo7frn1 at gmail.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.h
    M llvm/test/Transforms/AtomicExpand/X86/expand-atomic-non-integer.ll

  Log Message:
  -----------
  [X86] Remove shouldCastAtomicLoadInIR; use DAG combine instead

Remove X86's shouldCastAtomicLoadInIR override that cast FP atomic
loads to integer at the IR level. Instead, handle this in a pre-legalize
DAG combine (combineAtomicLoad) that rewrites FP/FP-vector atomic loads
to integer atomic loads plus a bitcast.

This depends on #199310 which adds the necessary cmpxchg support for
non-integer atomic loads in AtomicExpand.



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