diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-12-15 18:25:13 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-12-15 18:25:13 +0000 |
| commit | c722e26549a9b60f6177c96ce5e3407b98cd4a5e (patch) | |
| tree | 6e890cfd007a42b204461c31492f0bce6f679e9b | |
| parent | 22f0742dda8da93de7c6585c9129c81483346b68 (diff) | |
| download | bcm5719-llvm-c722e26549a9b60f6177c96ce5e3407b98cd4a5e.tar.gz bcm5719-llvm-c722e26549a9b60f6177c96ce5e3407b98cd4a5e.zip | |
fix typo in comment and remove inaccurate comment; NFC
llvm-svn: 320838
| -rw-r--r-- | llvm/include/llvm/Transforms/Utils/Local.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/Local.h b/llvm/include/llvm/Transforms/Utils/Local.h index 7dd21dfc1a8..01db88bc15c 100644 --- a/llvm/include/llvm/Transforms/Utils/Local.h +++ b/llvm/include/llvm/Transforms/Utils/Local.h @@ -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 diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 3ee2d046513..a1961eecb39 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -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) { |

