summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64FastISel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64FastISel.cpp b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
index 280d11af470..75163807565 100644
--- a/llvm/lib/Target/AArch64/AArch64FastISel.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
@@ -3475,16 +3475,16 @@ bool AArch64FastISel::TargetSelectInstruction(const Instruction *I) {
case Instruction::FRem:
return SelectBinaryOp(I, ISD::FREM);
case Instruction::Shl:
- if (!SelectBinaryOp(I, ISD::SHL))
- return SelectShift(I);
+ if (!SelectShift(I))
+ return SelectBinaryOp(I, ISD::SHL);
return true;
case Instruction::LShr:
- if (!SelectBinaryOp(I, ISD::SRL))
- return SelectShift(I);
+ if (!SelectShift(I))
+ return SelectBinaryOp(I, ISD::SRL);
return true;
case Instruction::AShr:
- if (!SelectBinaryOp(I, ISD::SRA))
- return SelectShift(I);
+ if (!SelectShift(I))
+ return SelectBinaryOp(I, ISD::SRA);
return true;
case Instruction::And:
return SelectBinaryOp(I, ISD::AND);
OpenPOWER on IntegriCloud