[llvm] d1a4b8c - [GlobalISel] Remove unused variable 'Or' (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 15:41:43 PDT 2023
Author: Jie Fu
Date: 2023-08-18T06:40:41+08:00
New Revision: d1a4b8c56f018943abda3aa79075ebbcebb452c9
URL: https://github.com/llvm/llvm-project/commit/d1a4b8c56f018943abda3aa79075ebbcebb452c9
DIFF: https://github.com/llvm/llvm-project/commit/d1a4b8c56f018943abda3aa79075ebbcebb452c9.diff
LOG: [GlobalISel] Remove unused variable 'Or' (NFC)
/Users/jiefu/llvm-project/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:3450:10: error: unused variable 'Or' [-Werror,-Wunused-variable]
auto Or = MIRBuilder.buildOr(CarryOut, And, Res_ULT_LHS);
^
1 error generated.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 7dc86ab97dbf71..1a6532572ab239 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -3447,7 +3447,7 @@ LegalizerHelper::lower(MachineInstr &MI, unsigned TypeIdx, LLT LowerHintTy) {
auto Res_ULT_LHS =
MIRBuilder.buildICmp(CmpInst::ICMP_ULT, CondTy, Res, LHS);
auto And = MIRBuilder.buildAnd(CondTy, Res_EQ_LHS, CarryIn);
- auto Or = MIRBuilder.buildOr(CarryOut, And, Res_ULT_LHS);
+ MIRBuilder.buildOr(CarryOut, And, Res_ULT_LHS);
MI.eraseFromParent();
return Legalized;
More information about the llvm-commits
mailing list