[PATCH] D136284: SROA should freeze undefs for loads with no prior stores

Nuno Lopes via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 19 13:20:49 PDT 2022


nlopes requested changes to this revision.
nlopes added a comment.

> However, multiple loads of the same memory must be equal

This premise is incorrect w.r.t. with current semantics, which say that loads return undef for uninit memory.

As Nikita mentioned we are working towards changing this semantics. The work is ongoing, but we pivoted to make a couple of improvements in other areas to avoid perf regressions. For example, see the clang !noundef patches.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136284/new/

https://reviews.llvm.org/D136284



More information about the cfe-commits mailing list