[PATCH] D107185: [LoopStrengthReduction] Fix pointer to int extend asserts

Brendon Cahoon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 30 10:41:05 PDT 2021


bcahoon created this revision.
bcahoon added a reviewer: eli.friedman.
Herald added subscribers: kerbowa, javed.absar, hiraditya, nhaehnle, jvesely.
bcahoon requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Additional asserts were added to ScalarEvolution to enforce
pointer/int type rules. An assert is triggered when the LSR pass
attempts to extend a pointer SCEV to an int SCEV in
GenerateTruncates.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107185

Files:
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
  llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lsr-invalid-ptr-extend.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107185.363143.patch
Type: text/x-patch
Size: 6906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210730/db2a7f61/attachment.bin>


More information about the llvm-commits mailing list