aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/builtin-functions.cpp
diff options
context:
space:
mode:
authorNingning Shi(史宁宁) <shiningning@iscas.ac.cn>2025-03-26 14:42:27 +0800
committerGitHub <noreply@github.com>2025-03-26 14:42:27 +0800
commitab5de9af4c00cecf166be51f3e93df2762692788 (patch)
tree9cc4f62d592aa9a82eea71778edba03cbc118894 /clang/test/AST/ByteCode/builtin-functions.cpp
parent529feec2bcd8cf9dfef9f4b8edf03bdcf4fd1b42 (diff)
downloadllvm-ab5de9af4c00cecf166be51f3e93df2762692788.zip
llvm-ab5de9af4c00cecf166be51f3e93df2762692788.tar.gz
llvm-ab5de9af4c00cecf166be51f3e93df2762692788.tar.bz2
[NFC][X86][ISel] Remove the unused assert (#133029)
The condition of assert is always true, so just remove it. OptForMinSize means hasMinSize(), which is hasFnAttribute(Attribute::MinSize). hasOptSize() is hasFnAttribute(Attribute::OptimizeForSize) || hasMinSize(). So, '!hasMinSize() || hasFnAttribute(Attribute::OptimizeForSize) || hasMinSize()' is awalys true. --------------------------------- llvm/include/llvm/IR/Function.h ``` /// Optimize this function for minimum size (-Oz). bool hasMinSize() const { return hasFnAttribute(Attribute::MinSize); } /// Optimize this function for size (-Os) or minimum size (-Oz). bool hasOptSize() const { return hasFnAttribute(Attribute::OptimizeForSize) || hasMinSize(); } ```
Diffstat (limited to 'clang/test/AST/ByteCode/builtin-functions.cpp')
0 files changed, 0 insertions, 0 deletions