[all-commits] [llvm/llvm-project] 406e9c: [SCEV] Use object size for allocas as well

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jun 23 03:40:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 406e9c93726ed929ca09ffed2fd3a60cfd633f4b
      https://github.com/llvm/llvm-project/commit/406e9c93726ed929ca09ffed2fd3a60cfd633f4b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-06-23 (Fri, 23 Jun 2023)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/nsw.ll
    M llvm/test/Analysis/ScalarEvolution/sdiv.ll
    M llvm/test/Analysis/ScalarEvolution/srem.ll

  Log Message:
  -----------
  [SCEV] Use object size for allocas as well

The object size and alignment based restriction on the possible
allocation range also applies to allocas, not just globals, so
handle them as well.

We shouldn't really need any type restriction here at all, but
for now stay conservative.




More information about the All-commits mailing list