[PATCH] D104322: [SCEV] PtrToInt on non-integral pointers is allowed
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 16 00:25:17 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa3113df21994: [SCEV] PtrToInt on non-integral pointers is allowed (authored by lebedev.ri).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104322/new/
https://reviews.llvm.org/D104322
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
Index: llvm/lib/Analysis/ScalarEvolution.cpp
===================================================================
--- llvm/lib/Analysis/ScalarEvolution.cpp
+++ llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1060,9 +1060,6 @@
if (!Op->getType()->isPointerTy())
return Op;
- assert(!getDataLayout().isNonIntegralPointerType(Op->getType()) &&
- "Source pointer type must be integral for ptrtoint!");
-
// What would be an ID for such a SCEV cast expression?
FoldingSetNodeID ID;
ID.AddInteger(scPtrToInt);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104322.352354.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/20044812/attachment.bin>
More information about the llvm-commits
mailing list