[all-commits] [llvm/llvm-project] eeb125: [InstSimplify] Slightly optimize simplifyLoad() (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Feb 16 01:41:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eeb125659c172f83c9c3a7b5dfaf3e4fb54b7c25
      https://github.com/llvm/llvm-project/commit/eeb125659c172f83c9c3a7b5dfaf3e4fb54b7c25
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] Slightly optimize simplifyLoad() (NFC)

Check upfront whether the load is based on a constant global
with definitive initializer. Don't bother computing offsets
otherwise.




More information about the All-commits mailing list