Skip to content

Commit f81832c

Browse files
committed
abi layout: remove pqp_cg_ssa patch for #[repr(SIMD)]
1 parent ce5d860 commit f81832c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,6 @@ pub(super) fn elf_e_flags(architecture: Architecture, sess: &Session) -> u32 {",
234234
);
235235
} else if relative_path == Path::new("src/mir/operand.rs") {
236236
src = src.replace("alloca(field.size,", "typed_alloca(llfield_ty,");
237-
238-
// HACK(eddyb) non-array `#[repr(simd)]` workarounds (see `src/abi.rs`).
239-
src = src.replace("if constant_ty.is_simd() {", "if false {");
240-
src = src.replace(
241-
"match (self.val, self.layout.backend_repr) {",
242-
"match (self.val, self.layout.backend_repr) {
243-
// `#[repr(simd)]` types are also immediate.
244-
(OperandValue::Immediate(llval), BackendRepr::SimdVector { element, .. }) => {
245-
(Some(element), bx.extract_element(llval, bx.cx().const_usize(i as u64)))
246-
}",
247-
);
248237
}
249238

250239
fs::write(out_path, src)?;

0 commit comments

Comments
 (0)