[all-commits] [llvm/llvm-project] cbc2ac: [WebAssembly] Fold TargetGlobalAddress with added ...

jjasmine via All-commits all-commits at lists.llvm.org
Thu Jul 3 03:01:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbc2ac5db8ead660f1c264b6eb1e374665e4c152
      https://github.com/llvm/llvm-project/commit/cbc2ac5db8ead660f1c264b6eb1e374665e4c152
  Author: jjasmine <jjasmine at igalia.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
    M llvm/test/CodeGen/WebAssembly/eh-lsda.ll
    M llvm/test/CodeGen/WebAssembly/exception-legacy.ll
    M llvm/test/CodeGen/WebAssembly/offset.ll

  Log Message:
  -----------
  [WebAssembly] Fold TargetGlobalAddress with added offset (#145829)

Previously we only folded TargetGlobalAddresses into the memarg if they
were on their own, so this patch supports folding TargetGlobalAddresses
that are added to some other offset.

Previously we weren't able to do this because we didn't have nuw on the
add, but we can now that getelementptr has nuw and is plumbed through to
the add in 0564d0665b302d1c7861e03d2995612f46613a0f.

Fixes #61930



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