diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-05 20:19:41 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-03-23 23:23:41 -0700 |
| commit | 3da115a93b782796e3d267266b4241e5258f1fef (patch) | |
| tree | d96ec402b98579b285d21945727fcb35eb51a6f8 /compiler/rustc_mir_transform/src/lower_intrinsics.rs | |
| parent | 744c664ba2e6440024457d5ec0d3600b3e0c0144 (diff) | |
| download | rust-3da115a93b782796e3d267266b4241e5258f1fef.tar.gz rust-3da115a93b782796e3d267266b4241e5258f1fef.zip | |
Add+Use `mir::BinOp::Cmp`
Diffstat (limited to 'compiler/rustc_mir_transform/src/lower_intrinsics.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lower_intrinsics.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/lower_intrinsics.rs b/compiler/rustc_mir_transform/src/lower_intrinsics.rs index 7d4c1b9c21a..7e8920604c1 100644 --- a/compiler/rustc_mir_transform/src/lower_intrinsics.rs +++ b/compiler/rustc_mir_transform/src/lower_intrinsics.rs @@ -90,6 +90,7 @@ impl<'tcx> MirPass<'tcx> for LowerIntrinsics { sym::wrapping_add | sym::wrapping_sub | sym::wrapping_mul + | sym::three_way_compare | sym::unchecked_add | sym::unchecked_sub | sym::unchecked_mul @@ -109,6 +110,7 @@ impl<'tcx> MirPass<'tcx> for LowerIntrinsics { sym::wrapping_add => BinOp::Add, sym::wrapping_sub => BinOp::Sub, sym::wrapping_mul => BinOp::Mul, + sym::three_way_compare => BinOp::Cmp, sym::unchecked_add => BinOp::AddUnchecked, sym::unchecked_sub => BinOp::SubUnchecked, sym::unchecked_mul => BinOp::MulUnchecked, |
