Disable llvm.prefetch for PowerPC

This instruction is not supported on this backend, so should
just be a noop.
This commit is contained in:
Cody Tapscott
2022-10-08 11:32:32 -07:00
parent 6e6ae8886e
commit db9058e41a
2 changed files with 11 additions and 1 deletions

View File

@@ -9168,7 +9168,13 @@ pub const FuncGen = struct {
const target = self.dg.module.getTarget();
switch (prefetch.cache) {
.instruction => switch (target.cpu.arch) {
.x86_64, .i386 => return null,
.x86_64,
.i386,
.powerpc,
.powerpcle,
.powerpc64,
.powerpc64le,
=> return null,
.arm, .armeb, .thumb, .thumbeb => {
switch (prefetch.rw) {
.write => return null,