[PATCH] D133036: [InstCombine] Treat passing undef to noundef params as UB

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 11:22:51 PDT 2022


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LG



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:2905
+  for (unsigned I = 0; I < Call.arg_size(); ++I) {
+    if (isa<UndefValue>(Call.getArgOperand(I)) && Call.isPassingUndefUB(I)) {
+      return true;
----------------
nit: unnecessary braces


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133036



More information about the llvm-commits mailing list