[all-commits] [llvm/llvm-project] b21e32: [IR] Add ptradd fast path in accumulateConstantOff...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Feb 12 03:40:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b21e3282864c9f7ad656c64bc375f5869ef76d19
      https://github.com/llvm/llvm-project/commit/b21e3282864c9f7ad656c64bc375f5869ef76d19
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M llvm/lib/IR/Operator.cpp

  Log Message:
  -----------
  [IR] Add ptradd fast path in accumulateConstantOffset() (NFC)

For getelementptr i8 (aka ptradd) we can skip the whole logic and
directly use the offset. As we're now canonicalizing to this form,
it's pretty common and worth having a fast-path for.




More information about the All-commits mailing list