mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 20:00:43 +00:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 15899eaab58e96bb7bbe7a14099674e255656a50 Mon Sep 17 00:00:00 2001
|
|
From: Valentin Churavy <v.churavy@gmail.com>
|
|
Date: Fri, 23 Feb 2018 14:41:20 -0500
|
|
Subject: [PATCH] Make AddrSpaceCast noops on PPC
|
|
|
|
PPC as AArch64 doesn't have address-spaces so we can drop them in the backend
|
|
---
|
|
lib/Target/PowerPC/PPCISelLowering.h | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: llvm-toolchain-6.0-6.0.1/lib/Target/PowerPC/PPCISelLowering.h
|
|
===================================================================
|
|
--- llvm-toolchain-6.0-6.0.1.orig/lib/Target/PowerPC/PPCISelLowering.h
|
|
+++ llvm-toolchain-6.0-6.0.1/lib/Target/PowerPC/PPCISelLowering.h
|
|
@@ -889,6 +889,11 @@ namespace llvm {
|
|
return true;
|
|
}
|
|
|
|
+ bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override {
|
|
+ // Addrspacecasts are always noops.
|
|
+ return true;
|
|
+ }
|
|
+
|
|
bool canReuseLoadAddress(SDValue Op, EVT MemVT, ReuseLoadInfo &RLI,
|
|
SelectionDAG &DAG,
|
|
ISD::LoadExtType ET = ISD::NON_EXTLOAD) const;
|