diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-05-25 16:22:14 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-05-25 16:22:14 +0000 |
commit | a00df49dc5c1d94b04e9c4271018c6aaa97d7426 (patch) | |
tree | 75ea43bbc503f4bc4ba19261266a331447b3e0ba /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 7663d3be15c21158ebf17941faa75b1bd8ee830d (diff) | |
download | bcm5719-llvm-a00df49dc5c1d94b04e9c4271018c6aaa97d7426.tar.gz bcm5719-llvm-a00df49dc5c1d94b04e9c4271018c6aaa97d7426.zip |
Clarify that we match BSwap in InstCombine and BitReverse in CGP. NFC.
Also, rename recognizeBitReverseOrBSwapIdiom to recognizeBSwapOrBitReverseIdiom,
so the ordering of the MatchBSwaps and MatchBitReversals arguments are
consistent with the function name.
llvm-svn: 270715
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 3282dc69e7a..d396137fa31 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -5305,7 +5305,7 @@ static bool makeBitReverse(Instruction &I, const DataLayout &DL, return false; SmallVector<Instruction*, 4> Insts; - if (!recognizeBitReverseOrBSwapIdiom(&I, false, true, Insts)) + if (!recognizeBSwapOrBitReverseIdiom(&I, false, true, Insts)) return false; Instruction *LastInst = Insts.back(); I.replaceAllUsesWith(LastInst); |