[PATCH] D43781: Make AddrSpaceCast noops on PPC
Valentin Churavy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 13:17:39 PST 2018
vchuravy created this revision.
Herald added subscribers: llvm-commits, kbarton, kristof.beyls, nemanjai.
PPC as AArch64 doesn't have address-spaces so we can drop them in the backend
Repository:
rL LLVM
https://reviews.llvm.org/D43781
Files:
lib/Target/PowerPC/PPCISelLowering.h
Index: lib/Target/PowerPC/PPCISelLowering.h
===================================================================
--- lib/Target/PowerPC/PPCISelLowering.h
+++ lib/Target/PowerPC/PPCISelLowering.h
@@ -884,6 +884,11 @@
}
};
+ 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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43781.135963.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180226/30fd4fd6/attachment.bin>
More information about the llvm-commits
mailing list