Skip to content

Commit 74305a6

Browse files
author
Reid Spencer
committed
Don't look for __builtin_ffs, we'll never see it from llvm-gcc and there's
not reason to include it for other front ends. llvm-svn: 22070
1 parent 597618f commit 74305a6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,20 +1773,6 @@ struct FFSLLOptimization : public FFSOptimization
17731773

17741774
} FFSLLOptimizer;
17751775

1776-
/// This LibCallOptimization will simplify calls to the "__builtin_ffs"
1777-
/// function which is generated by the CFE (its GCC specific).
1778-
/// It simply uses FFSOptimization for which the transformation is
1779-
/// identical.
1780-
/// @brief Simplify the ffsl library function.
1781-
struct BuiltinFFSOptimization : public FFSOptimization
1782-
{
1783-
public:
1784-
/// @brief Default Constructor
1785-
BuiltinFFSOptimization() : FFSOptimization("__builtin_ffs",
1786-
"Number of '__builtin_ffs' calls simplified") {}
1787-
1788-
} BuiltinFFSOptimization;
1789-
17901776
/// A function to compute the length of a null-terminated constant array of
17911777
/// integers. This function can't rely on the size of the constant array
17921778
/// because there could be a null terminator in the middle of the array.

0 commit comments

Comments
 (0)