[PATCH] D18438: Calculate __builtin_object_size when pointer depends on a condition

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 10:18:08 PDT 2016


nlopes added a subscriber: nlopes.

================
Comment at: lib/Analysis/MemoryBuiltins.cpp:559
@@ -555,3 +558,3 @@
 SizeOffsetType ObjectSizeOffsetVisitor::visitPHINode(PHINode&) {
   // too complex to analyze statically.
   return unknown();
----------------
We used to handle PHIs, but then we had a compile-time regression because alias analysis got too slow.  We may introduce a switch, though, to be more or less aggressive.


Repository:
  rL LLVM

http://reviews.llvm.org/D18438





More information about the llvm-commits mailing list