[llvm] [StackSafetyAnalysis] Don't call getTruncateOrZeroExtend for pointers of different sizes (PR #79804)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 03:39:29 PST 2024
================
@@ -273,6 +273,17 @@ ConstantRange StackSafetyLocalAnalysis::offsetFrom(Value *Addr, Value *Base) {
return UnknownRange;
auto *PtrTy = PointerType::getUnqual(SE.getContext());
----------------
nikic wrote:
I'd expect any fix to this to at least remove all the getTruncateOrZeroExtend() calls on pointer SCEVS in this pass, as that fundamentally never makes sense.
https://github.com/llvm/llvm-project/pull/79804
More information about the llvm-commits
mailing list