mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[SDAG] move variable closer to use; NFC
llvm-svn: 368905
This commit is contained in:
parent
1205ea06b0
commit
4e31bed4b9
@ -9003,7 +9003,6 @@ SelectionDAG::matchBinOpReduction(SDNode *Extract, ISD::NodeType &BinOp,
|
||||
return SDValue();
|
||||
|
||||
SDValue Op = Extract->getOperand(0);
|
||||
unsigned Stages = Log2_32(Op.getValueType().getVectorNumElements());
|
||||
|
||||
// Match against one of the candidate binary ops.
|
||||
if (llvm::none_of(CandidateBinOps, [Op](ISD::NodeType BinOp) {
|
||||
@ -9041,6 +9040,7 @@ SelectionDAG::matchBinOpReduction(SDNode *Extract, ISD::NodeType &BinOp,
|
||||
// While a partial reduction match would be:
|
||||
// <2,3,u,u,u,u,u,u>
|
||||
// <1,u,u,u,u,u,u,u>
|
||||
unsigned Stages = Log2_32(Op.getValueType().getVectorNumElements());
|
||||
SDValue PrevOp;
|
||||
for (unsigned i = 0; i < Stages; ++i) {
|
||||
unsigned MaskEnd = (1 << i);
|
||||
|
Loading…
Reference in New Issue
Block a user