aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-05-27 15:50:12 -0700
committerMatt Arsenault <arsenm2@gmail.com>2020-07-31 10:42:43 -0400
commit57bd64ff8434aa55aeb1c7a1035f4b5b7468b809 (patch)
tree7fe262041bff144c5784a985a97b9be1186701a5 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent6983cf3a57aa6d8619eb39e1625eed5340ba05c7 (diff)
downloadllvm-57bd64ff8434aa55aeb1c7a1035f4b5b7468b809.zip
llvm-57bd64ff8434aa55aeb1c7a1035f4b5b7468b809.tar.gz
llvm-57bd64ff8434aa55aeb1c7a1035f4b5b7468b809.tar.bz2
Support addrspacecast initializers with isNoopAddrSpaceCast
Moves isNoopAddrSpaceCast to the TargetMachine. It logically belongs with the DataLayout.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 42cffaf..a85ac80 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -4322,7 +4322,7 @@ bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode,
unsigned SrcAS
= AddrInst->getOperand(0)->getType()->getPointerAddressSpace();
unsigned DestAS = AddrInst->getType()->getPointerAddressSpace();
- if (TLI.isNoopAddrSpaceCast(SrcAS, DestAS))
+ if (TLI.getTargetMachine().isNoopAddrSpaceCast(SrcAS, DestAS))
return matchAddr(AddrInst->getOperand(0), Depth);
return false;
}