[PATCH] D117078: [NFC] Minimize noundef analysis when disabled
Kevin Athey via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 12 17:21:28 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa141e4713850: [NFC] Minimize noundef analysis when disabled (authored by kda).
Changed prior to commit:
https://reviews.llvm.org/D117078?vs=399432&id=399516#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117078/new/
https://reviews.llvm.org/D117078
Files:
clang/lib/CodeGen/CGCall.cpp
Index: clang/lib/CodeGen/CGCall.cpp
===================================================================
--- clang/lib/CodeGen/CGCall.cpp
+++ clang/lib/CodeGen/CGCall.cpp
@@ -2377,9 +2377,10 @@
}
// Decide whether the argument we're handling could be partially undef
- bool ArgNoUndef = DetermineNoUndef(ParamType, getTypes(), DL, AI);
- if (CodeGenOpts.EnableNoundefAttrs && ArgNoUndef)
+ if (CodeGenOpts.EnableNoundefAttrs &&
+ DetermineNoUndef(ParamType, getTypes(), DL, AI)) {
Attrs.addAttribute(llvm::Attribute::NoUndef);
+ }
// 'restrict' -> 'noalias' is done in EmitFunctionProlog when we
// have the corresponding parameter variable. It doesn't make
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117078.399516.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220113/8c8c5eb1/attachment-0001.bin>
More information about the cfe-commits
mailing list