Commit Graph

2 Commits

Author SHA1 Message Date
Roman Lebedev 077bff39d4
[Analysis] isDereferenceableAndAlignedPointer(): recurse into select's hands
By doing this within the method itself,
we support traversing multiple levels of selects (TODO: PHI's),
fixing the SROA `std::clamp()` testcase.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47271
Mostly fixes https://bugs.llvm.org/show_bug.cgi?id=49909
2021-04-10 00:56:28 +03:00
Roman Lebedev 99d6e31e0b
[NFC][SROA] Add C++'s `std::clamp()` testcase from PR47271/PR49909 2021-04-10 00:56:00 +03:00