summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-05-25 16:22:14 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-05-25 16:22:14 +0000
commita00df49dc5c1d94b04e9c4271018c6aaa97d7426 (patch)
tree75ea43bbc503f4bc4ba19261266a331447b3e0ba /llvm/lib/Transforms/Utils
parent7663d3be15c21158ebf17941faa75b1bd8ee830d (diff)
downloadbcm5719-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/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 5c28f96510c..a536ddc0c2b 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1804,7 +1804,7 @@ static bool bitTransformIsCorrectForBitReverse(unsigned From, unsigned To,
/// Given an OR instruction, check to see if this is a bitreverse
/// idiom. If so, insert the new intrinsic and return true.
-bool llvm::recognizeBitReverseOrBSwapIdiom(
+bool llvm::recognizeBSwapOrBitReverseIdiom(
Instruction *I, bool MatchBSwaps, bool MatchBitReversals,
SmallVectorImpl<Instruction *> &InsertedInsts) {
if (Operator::getOpcode(I) != Instruction::Or)
OpenPOWER on IntegriCloud