[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
Thu Jan 7 03:00:04 PST 2021


xbolva00 marked 2 inline comments as done.
xbolva00 added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6598
+      // Passing null to a nonnnull argument is undefined.
+      for (const llvm::Use &Arg : CB->args())
+        if (Arg == I &&
----------------
nikic wrote:
> Why `llvm::`?
We have the variable "Use" already here.


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

https://reviews.llvm.org/D94180



More information about the llvm-commits mailing list