[llvm] r320838 - fix typo in comment and remove inaccurate comment; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 10:25:13 PST 2017
Author: spatel
Date: Fri Dec 15 10:25:13 2017
New Revision: 320838
URL: http://llvm.org/viewvc/llvm-project?rev=320838&view=rev
Log:
fix typo in comment and remove inaccurate comment; NFC
Modified:
llvm/trunk/include/llvm/Transforms/Utils/Local.h
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/include/llvm/Transforms/Utils/Local.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/Local.h?rev=320838&r1=320837&r2=320838&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/Local.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/Local.h Fri Dec 15 10:25:13 2017
@@ -455,7 +455,7 @@ void copyRangeMetadata(const DataLayout
// Intrinsic pattern matching
//
-/// Try and match a bswap or bitreverse idiom.
+/// Try to match a bswap or bitreverse idiom.
///
/// If an idiom is matched, an intrinsic call is inserted before \c I. Any added
/// instructions are returned in \c InsertedInsts. They will all have been added
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=320838&r1=320837&r2=320838&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Fri Dec 15 10:25:13 2017
@@ -2143,8 +2143,6 @@ static bool bitTransformIsCorrectForBitR
return From == BitWidth - To - 1;
}
-/// Given an OR instruction, check to see if this is a bitreverse
-/// idiom. If so, insert the new intrinsic and return true.
bool llvm::recognizeBSwapOrBitReverseIdiom(
Instruction *I, bool MatchBSwaps, bool MatchBitReversals,
SmallVectorImpl<Instruction *> &InsertedInsts) {
More information about the llvm-commits
mailing list