Skip to content

Commit

Permalink
[GlobalISel] Remove unused variable 'ResultTy' in CombinerHelper.cpp …
Browse files Browse the repository at this point in the history
…(NFC)

llvm-project/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:1179:7:
 error: unused variable 'ResultTy' [-Werror,-Wunused-variable]
  LLT ResultTy = MRI.getType(MI.getOperand(0).getReg());
      ^
1 error generated.
  • Loading branch information
DamonFool committed Dec 6, 2023
1 parent 41507fe commit a8d5f73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,9 +1176,8 @@ bool CombinerHelper::matchCombineExtractedVectorLoad(MachineInstr &MI,

Register Vector = MI.getOperand(1).getReg();
LLT VecEltTy = MRI.getType(Vector).getElementType();
LLT ResultTy = MRI.getType(MI.getOperand(0).getReg());

assert(ResultTy == VecEltTy);
assert(MRI.getType(MI.getOperand(0).getReg()) == VecEltTy);

// Checking whether we should reduce the load width.
if (!MRI.hasOneNonDBGUse(Vector))
Expand Down

0 comments on commit a8d5f73

Please sign in to comment.