mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
Don't force RETURN_PLACE to stack
Speeds up simple-raytracer by 7% (cc #684)
This commit is contained in:
parent
b9dc950a11
commit
40629999bc
@ -15,8 +15,6 @@ pub fn analyze(fx: &FunctionCx<'_, '_, impl Backend>) -> HashMap<Local, Flags> {
|
||||
flag_map.insert(local, Flags::empty());
|
||||
}
|
||||
|
||||
not_ssa(&mut flag_map, RETURN_PLACE);
|
||||
|
||||
for (local, local_decl) in fx.mir.local_decls.iter_enumerated() {
|
||||
if fx.clif_type(local_decl.ty).is_none() {
|
||||
not_ssa(&mut flag_map, local);
|
||||
|
Loading…
Reference in New Issue
Block a user