[all-commits] [llvm/llvm-project] cf5e88: [instsimplify] When compare allocas, consider thei...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Feb 17 09:53:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf5e88864b286e5b3433cd2d7995fe9465d57804
      https://github.com/llvm/llvm-project/commit/cf5e88864b286e5b3433cd2d7995fe9465d57804
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/test/Transforms/InstSimplify/compare.ll

  Log Message:
  -----------
  [instsimplify] When compare allocas, consider their minimal size

The code was using exact sizing only, but since what we really need is just to make sure the offsets are in bounds, a minimum bound on the object size is sufficient.

To demonstrate the difference, support computing minimum sizes from obects of scalable vector type.




More information about the All-commits mailing list