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
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. | |
813–814 | This override won't override the target callback | |
llvm/test/Transforms/InferAddressSpaces/OpenCL/noop-ptrint-pair.ll | ||
2 | "OpenCL" test subdirectory doesn't make sense. The subdirectories are for setting the target build requirements for the tests |
If the only point of this flag is this one test, it's probably not worth it.