isNoopAddrSpaceCast is expecting SrcAS is different from DestAS.
If the two AS are the same, consider ptrtoint/inttoptr as noop cast.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
---|---|---|
148–151 | If the only point of this flag is this one test, it's probably not worth it. | |
808–809 | This override won't override the target callback | |
llvm/test/Transforms/InferAddressSpaces/OpenCL/noop-ptrint-pair.ll | ||
2 ↗ | (On Diff #422132) | "OpenCL" test subdirectory doesn't make sense. The subdirectories are for setting the target build requirements for the tests |
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
---|---|---|
148–151 | the issue is still reproducible using -assume-default-is-flat-addrspace flag, so I'll update | |
808–809 | I see, thanks | |
llvm/test/Transforms/InferAddressSpaces/OpenCL/noop-ptrint-pair.ll | ||
2 ↗ | (On Diff #422132) | shall I put it in parent folder or X86 subfolder? |
If the only point of this flag is this one test, it's probably not worth it.