[all-commits] [llvm/llvm-project] c3f750: [MLIR][LLVM] Handle floats in Mem2Reg of memset in...

Johannes de Fine Licht via All-commits all-commits at lists.llvm.org
Mon Mar 17 14:31:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3f750250a9bec9b37198fb5d344d742e648e32d
      https://github.com/llvm/llvm-project/commit/c3f750250a9bec9b37198fb5d344d742e648e32d
  Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
  Date:   2025-03-17 (Mon, 17 Mar 2025)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMMemorySlot.cpp
    M mlir/test/Dialect/LLVMIR/mem2reg-intrinsics.mlir

  Log Message:
  -----------
  [MLIR][LLVM] Handle floats in Mem2Reg of memset intrinsics (#131621)

This was lacking a bitcast from the shifted integer type into a float.
Other non-struct types than integers and floats will still not be
Mem2Reg'ed.

Also adds special handling for constants to be emitted as a constant
directly rather than relying on followup canonicalization patterns
(`memset` of zero is a case that can appear in the wild).



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