[llvm] bea3967 - [VectorCombine] Rename foldBitcastShuf -> foldBitcastShuffle. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 03:29:03 PDT 2023
Author: Simon Pilgrim
Date: 2023-10-09T11:28:50+01:00
New Revision: bea39672715074bfbbe37b37d87cad023bfc7222
URL: https://github.com/llvm/llvm-project/commit/bea39672715074bfbbe37b37d87cad023bfc7222
DIFF: https://github.com/llvm/llvm-project/commit/bea39672715074bfbbe37b37d87cad023bfc7222.diff
LOG: [VectorCombine] Rename foldBitcastShuf -> foldBitcastShuffle. NFC.
Consistently use the term "Shuffle" in all vector combiner folds.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index ca7bb69b17f7c18..25123ea5b87b789 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -101,7 +101,7 @@ class VectorCombine {
Instruction &I);
bool foldExtractExtract(Instruction &I);
bool foldInsExtFNeg(Instruction &I);
- bool foldBitcastShuf(Instruction &I);
+ bool foldBitcastShuffle(Instruction &I);
bool scalarizeBinopOrCmp(Instruction &I);
bool scalarizeVPIntrinsic(Instruction &I);
bool foldExtractedCmps(Instruction &I);
@@ -679,7 +679,7 @@ bool VectorCombine::foldInsExtFNeg(Instruction &I) {
/// If this is a bitcast of a shuffle, try to bitcast the source vector to the
/// destination type followed by shuffle. This can enable further transforms by
/// moving bitcasts or shuffles together.
-bool VectorCombine::foldBitcastShuf(Instruction &I) {
+bool VectorCombine::foldBitcastShuffle(Instruction &I) {
Value *V;
ArrayRef<int> Mask;
if (!match(&I, m_BitCast(
@@ -1880,7 +1880,7 @@ bool VectorCombine::run() {
MadeChange |= foldSelectShuffle(I);
break;
case Instruction::BitCast:
- MadeChange |= foldBitcastShuf(I);
+ MadeChange |= foldBitcastShuffle(I);
break;
}
} else {
More information about the llvm-commits
mailing list