fix typo in comment and remove inaccurate comment; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 15 Dec 2017 18:25:13 +0000 (18:25 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 15 Dec 2017 18:25:13 +0000 (18:25 +0000)
llvm-svn: 320838

llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Utils/Local.cpp

index 7dd21dfc1a8595527b8b0779748e84004f297b4a..01db88bc15c2feb26632ca4c26d22ff0539cc993 100644 (file)
@@ -455,7 +455,7 @@ void copyRangeMetadata(const DataLayout &DL, const LoadInst &OldLI, MDNode *N,
 //  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
index 3ee2d046513661addfe86e0f962adee9f9504611..a1961eecb39179d13b24ba0e0cf1dfb06e7c2fbc 100644 (file)
@@ -2143,8 +2143,6 @@ static bool bitTransformIsCorrectForBitReverse(unsigned From, unsigned To,
   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) {