diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-05-27 15:50:12 -0700 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2020-07-31 10:42:43 -0400 |
commit | 57bd64ff8434aa55aeb1c7a1035f4b5b7468b809 (patch) | |
tree | 7fe262041bff144c5784a985a97b9be1186701a5 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 6983cf3a57aa6d8619eb39e1625eed5340ba05c7 (diff) | |
download | llvm-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.cpp | 2 |
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; } |