Skip to content

Commit e2323da

Browse files
committed
undo cg_ssa commit "pack small const aggregates into immediate stores"
1 parent 3ed0377 commit e2323da

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎crates/rustc_codegen_spirv/build.rs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ pub(super) fn elf_e_flags(architecture: Architecture, sess: &Session) -> u32 {",
250250

251251
// HACK(fee1-dead): our backend type number doesn't always match the type of the value. Should fix?
252252
if relative_path == Path::new("src/mir/rvalue.rs") {
253+
// Undo rust-lang/rust commit 87bb7c92132495b7cb0d476bc11b10ac27c2ea24
254+
// > codegen_ssa: pack small const aggregates into immediate stores
255+
src = src.replace(
256+
"
257+
if self.try_codegen_const_aggregate_as_immediate(bx, dest, kind, operands) {
258+
return;
259+
}
260+
",
261+
"",
262+
);
253263
src = src.replace(
254264
"debug_assert_eq!(bx.cx().val_ty(imm), from_backend_ty);",
255265
"",

0 commit comments

Comments
 (0)