[llvm] [ValueTracking] isNonZero trunc of sub of ptr2int's with recursive GEP where pointers are limited to a 32bit alloc. (PR #84933)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 18:22:38 PDT 2024


================
@@ -25,6 +26,11 @@ using namespace PatternMatch;
 
 #define DEBUG_TYPE "instcombine"
 
+// Controls the maximum memory allocation to 32-bit or 4GB.
+static cl::opt<bool> PointerAllocationsLimitedto32bit(
+    "alloc-limit-32bit", cl::init(false),
+    cl::desc("A Pointer with max 32bit allocs"));
----------------
nikic wrote:

I'm not willing to add this flag.

https://github.com/llvm/llvm-project/pull/84933


More information about the llvm-commits mailing list