[llvm] c75a2bb - [AArch64][GlobalISel] Change | -> || in an if
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 15:00:41 PDT 2021
Author: Jessica Paquette
Date: 2021-07-21T14:57:31-07:00
New Revision: c75a2bbe080c8ff2a62286e816dfde914f1ae1f6
URL: https://github.com/llvm/llvm-project/commit/c75a2bbe080c8ff2a62286e816dfde914f1ae1f6
DIFF: https://github.com/llvm/llvm-project/commit/c75a2bbe080c8ff2a62286e816dfde914f1ae1f6.diff
LOG: [AArch64][GlobalISel] Change | -> || in an if
I wrote the wrong type of OR by mistake.
Added:
Modified:
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
index 07fbf5698550..f4525e73e590 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@ -5079,7 +5079,7 @@ bool AArch64InstructionSelector::selectIntrinsicWithSideEffects(
Opc = AArch64::ST2Twov4s;
else if (Ty == LLT::fixed_vector(2, S64) || Ty == LLT::fixed_vector(2, P0))
Opc = AArch64::ST2Twov2d;
- else if (Ty == S64 | Ty == P0)
+ else if (Ty == S64 || Ty == P0)
Opc = AArch64::ST1Twov1d;
else
llvm_unreachable("Unexpected type for st2!");
More information about the llvm-commits
mailing list