Skip to content

Commit fda115a

Browse files
committed
[HACK] rustc_codegen_ssa: remove micro-opt around cleanup_ret trampoline.
1 parent b849326 commit fda115a

File tree

1 file changed

+1
-8
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+1
-8
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
8888
bx: &mut Bx,
8989
target: mir::BasicBlock,
9090
) {
91-
let (lltarget, is_cleanupret) = self.lltarget(fx, target);
92-
if is_cleanupret {
93-
// micro-optimization: generate a `ret` rather than a jump
94-
// to a trampoline.
95-
bx.cleanup_ret(self.funclet(fx).unwrap(), Some(lltarget));
96-
} else {
97-
bx.br(lltarget);
98-
}
91+
bx.br(self.llblock(fx, target));
9992
}
10093

10194
/// Call `fn_ptr` of `fn_abi` with the arguments `llargs`, the optional

0 commit comments

Comments
 (0)