diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-02-07 20:44:08 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-02-07 20:44:08 +0000 |
| commit | e98cab11d7d7441d526b6b0a16049f2e8c196a75 (patch) | |
| tree | f5e9173fdd218d42e98848678283fc9949efe4a1 /llvm/lib/CodeGen | |
| parent | 5fbdccd834874aad04e21b0253084a27013a3f81 (diff) | |
| download | bcm5719-llvm-e98cab11d7d7441d526b6b0a16049f2e8c196a75.tar.gz bcm5719-llvm-e98cab11d7d7441d526b6b0a16049f2e8c196a75.zip | |
GlobalISel: Try to fix bot failures
Don't rely on order of evaluation of function arguments.
llvm-svn: 353460
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp index 3dd5c32f5d0..ff5b18a5a76 100644 --- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp +++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp @@ -2219,11 +2219,11 @@ LegalizerHelper::narrowScalarShiftByConstant(MachineInstr &MI, const APInt &Amt, Hi = InL; } else { Lo = MIRBuilder.buildShl(NVT, InL, MIRBuilder.buildConstant(AmtTy, Amt)); - Hi = MIRBuilder.buildOr( - NVT, - MIRBuilder.buildShl(NVT, InH, MIRBuilder.buildConstant(AmtTy, Amt)), - MIRBuilder.buildLShr( - NVT, InL, MIRBuilder.buildConstant(AmtTy, -Amt + NVTBits))); + auto OrLHS = + MIRBuilder.buildShl(NVT, InH, MIRBuilder.buildConstant(AmtTy, Amt)); + auto OrRHS = MIRBuilder.buildLShr( + NVT, InL, MIRBuilder.buildConstant(AmtTy, -Amt + NVTBits)); + Hi = MIRBuilder.buildOr(NVT, OrLHS, OrRHS); } } else if (MI.getOpcode() == TargetOpcode::G_LSHR) { if (Amt.ugt(VTBits)) { |

