[all-commits] [llvm/llvm-project] 95191d: [GISel] Set more MIFlags when translating GEPs (#1...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Mon Aug 4 04:25:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95191d54603e6bcd6b924c99755b3a9f3bb1c345
      https://github.com/llvm/llvm-project/commit/95191d54603e6bcd6b924c99755b3a9f3bb1c345
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-08-04 (Mon, 04 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator-gep.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator-switch.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-gep-flags.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/translate-gep.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.ll

  Log Message:
  -----------
  [GISel] Set more MIFlags when translating GEPs (#151708)

The IRTranslator sets the flags now more consistently with
`SelectionDAGBuilder::visitGetElementPtr()`. This affects `nuw` and `nusw`, as
well as the recently introduced `inbounds` MIFlag (see PR #150900).

This PR also adds more tests to `AArch64/GlobalISel/irtranslator-gep-flags.ll`
to cover all points in `IRTranslator::translateGetElementPtr` that set flags.

For SWDEV-516125.



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