unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 7f51b3bb17436b4994b5e0778af172bc7d5db8a1 1069 bytes (raw)
name: gnu/packages/patches/llvm-PPC-addrspaces.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
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(+)

diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h
index e60504507d3..c9b89773968 100644
--- a/lib/Target/PowerPC/PPCISelLowering.h
+++ b/lib/Target/PowerPC/PPCISelLowering.h
@@ -761,6 +761,11 @@ namespace llvm {
       ReuseLoadInfo() : IsInvariant(false), Alignment(0), Ranges(nullptr) {}
     };

+    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;
-- 
2.16.2


debug log:

solving 7f51b3bb1 ...
found 7f51b3bb1 in https://yhetil.org/guix-patches/20190423094936.27413-1-anothersms@gmail.com/ ||
	https://yhetil.org/guix-patches/20190425075114.10284-1-anothersms@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/20190423094936.27413-1-anothersms@gmail.com/
diff --git a/gnu/packages/patches/llvm-PPC-addrspaces.patch b/gnu/packages/patches/llvm-PPC-addrspaces.patch
new file mode 100644
index 0000000000..7f51b3bb17

1:33: trailing whitespace.
-- 
Checking patch gnu/packages/patches/llvm-PPC-addrspaces.patch...
1:35: new blank line at EOF.
+
Applied patch gnu/packages/patches/llvm-PPC-addrspaces.patch cleanly.
warning: 2 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/20190425075114.10284-1-anothersms@gmail.com/ for 7f51b3bb17
index at:
100644 7f51b3bb17436b4994b5e0778af172bc7d5db8a1	gnu/packages/patches/llvm-PPC-addrspaces.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).