[PATCH] D63928: [ARM][SCEV][LSR] Prevent using undefined value in binops

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 07:00:44 PDT 2019


samparker added a comment.

It looks like this problem is stemming from the fact that values are often cached during expansion, so even though the cast is replaced by a new value, the old value is still being used later on. Value reuse seems at important theme in this transform, so maybe we could try to introduce a map of updated values so that we don't reuse 'dead' instructions? I don't know what trade-offs we should be considering here though. This approach is certainly more simple and less likely to break again in the future.


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

https://reviews.llvm.org/D63928





More information about the llvm-commits mailing list