[all-commits] [llvm/llvm-project] cc70e1: [Operator] Truncate large type sizes in GEP calcul...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Nov 21 06:01:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc70e12ebdacd09d5e4e124df81af6e9626be7d7
      https://github.com/llvm/llvm-project/commit/cc70e12ebdacd09d5e4e124df81af6e9626be7d7
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-11-21 (Thu, 21 Nov 2024)

  Changed paths:
    M llvm/lib/IR/Operator.cpp
    M llvm/test/Transforms/InstCombine/gep-custom-dl.ll

  Log Message:
  -----------
  [Operator] Truncate large type sizes in GEP calculations

If the size is larger than the index width, truncate it instead
of asserting.

Longer-term we should consider rejecting types larger than the
index size in the verifier, though this is probably tricky in
practice (it's address space dependent, and types are owned by
the context, not the module).

Fixes https://github.com/llvm/llvm-project/issues/116960.



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