[llvm] [StackSafetyAnalysis] Don't call getTruncateOrZeroExtend for pointers of different sizes (PR #79804)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 07:54:09 PST 2024
================
@@ -268,13 +276,28 @@ class StackSafetyLocalAnalysis {
FunctionInfo<GlobalValue> run();
};
+const SCEV *StackSafetyLocalAnalysis::getSCEVAsPointer(Value *Val) {
+ Type *ValTy = Val->getType();
+
+ auto *PtrTy = PointerType::getUnqual(SE.getContext());
+ if (ValTy->isPointerTy()) {
----------------
Pierre-vh wrote:
yeah it only works on pointers, I added an assert and it doesn't trip
https://github.com/llvm/llvm-project/pull/79804
More information about the llvm-commits
mailing list