[PATCH] D94180: [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument.

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 12:17:56 PST 2021


xbolva00 marked an inline comment as done.
xbolva00 added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6609
+              // Passing null to a nonnnull+noundef argument is undefined.
+              return true;
+            }
----------------
nikic wrote:
> I would expect this to be something like `return !IsUndefinedFromGEP`, with `IsUndefinedFromGEP` being a simple bool.
Yes, simplier. Thanks


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94180/new/

https://reviews.llvm.org/D94180



More information about the llvm-commits mailing list