diff options
author | James Molloy <james.molloy@arm.com> | 2013-12-03 11:23:11 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2013-12-03 11:23:11 +0000 |
commit | 8a25992f39b0001c980388d26cbfccb1e86e89d8 (patch) | |
tree | 2f9323deda3666155f2e789f5e39debb68c25a6e /llvm/lib | |
parent | ccc2a7c1a04a6ef8afa495bd64d72f766e62f24b (diff) | |
download | bcm5719-llvm-8a25992f39b0001c980388d26cbfccb1e86e89d8.tar.gz bcm5719-llvm-8a25992f39b0001c980388d26cbfccb1e86e89d8.zip |
Addrspacecasts are no-ops on ARM.
Testcase added.
llvm-svn: 196269
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h index f17b8df0c9b..bcd60593081 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.h +++ b/llvm/lib/Target/ARM/ARMISelLowering.h @@ -361,6 +361,12 @@ namespace llvm { /// be used for loads / stores from the global. virtual unsigned getMaximalGlobalOffset() const; + /// Returns true if a cast between SrcAS and DestAS is a noop. + virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { + // Addrspacecasts are always noops. + return true; + } + /// createFastISel - This method returns a target specific FastISel object, /// or null if the target does not support "fast" ISel. virtual FastISel *createFastISel(FunctionLoweringInfo &funcInfo, |