Skip to content

Commit fc5b7aa

Browse files
committed
Fixup: Adjusting after review feedback
1 parent ff9e7aa commit fc5b7aa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,9 +1882,10 @@ LLVM_ABI SDValue peekThroughExtractSubvectors(SDValue V);
18821882
LLVM_ABI SDValue peekThroughTruncates(SDValue V);
18831883

18841884
/// Recursively peek through INSERT_VECTOR_ELT nodes, returning the source
1885-
/// vector operand of \p V, as long as \p V is an does INSERT_VECTOR_ELT
1886-
/// operation that do not insert into any of the demanded vector elts.
1887-
LLVM_ABI SDValue peekThroughInsertVectorElt(SDValue V, APInt DemandedElts);
1885+
/// vector operand of \p V, as long as \p V is an INSERT_VECTOR_ELT operation
1886+
/// that do not insert into any of the demanded vector elts.
1887+
LLVM_ABI SDValue peekThroughInsertVectorElt(SDValue V,
1888+
const APInt &DemandedElts);
18881889

18891890
/// Returns true if \p V is a bitwise not operation. Assumes that an all ones
18901891
/// constant is canonicalized to be operand 1.

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12516,7 +12516,8 @@ SDValue llvm::peekThroughTruncates(SDValue V) {
1251612516
return V;
1251712517
}
1251812518

12519-
SDValue llvm::peekThroughInsertVectorElt(SDValue V, APInt DemandedElts) {
12519+
SDValue llvm::peekThroughInsertVectorElt(SDValue V,
12520+
const APInt &DemandedElts) {
1252012521
while (V.getOpcode() == ISD::INSERT_VECTOR_ELT) {
1252112522
SDValue InVec = V.getOperand(0);
1252212523
SDValue EltNo = V.getOperand(2);

0 commit comments

Comments
 (0)