[PATCH] D118727: [MemoryBuiltins][FIX] Adjust index type size properly wrt. AS casts
    Johannes Doerfert via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Feb  1 12:50:05 PST 2022
    
    
  
jdoerfert added inline comments.
================
Comment at: llvm/lib/Analysis/MemoryBuiltins.cpp:599
+  if (knownOffset(SOT) && !::CheckedZextOrTrunc(SOT.second, InitialIntTyBits))
+    return unknown();
+  return SOT;
----------------
Here, and elsewhere, we could probably give up only on the problematic part (offset vs size).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118727/new/
https://reviews.llvm.org/D118727
    
    
More information about the llvm-commits
mailing list