Skip to content
Unverified Commit 7ee6c402 authored by Roman Lebedev's avatar Roman Lebedev
Browse files

Revert "Reland "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as...

Revert "Reland "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown"" and it's follow-ups

While we haven't encountered an earth-shattering problem with this yet,
by now it is pretty evident that trying to model the ptr->int cast
implicitly leads to having to update every single place that assumed
no such cast could be needed. That is of course the wrong approach.

Let's back this out, and re-attempt with some another approach,
possibly one originally suggested by Eli Friedman in
https://bugs.llvm.org/show_bug.cgi?id=46786#c20
which should hopefully spare us this pain and more.

This reverts commits 1fb61042,
73246166,
aaafe350,
e92a8e0c.

I've kept&improved the tests though.
parent 2c4226f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment