Diff Detail
Event Timeline
| llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
|---|---|---|
| 259–265 | This is reinventing Type::getPointerAddressSpace | |
| 268–271 | isPtrOrPtrVectorTy | |
| 285 | Don't need to bother trying to maintain pointer element types anymore | |
| 289 | Ditto, only opaque pointers matter now | |
| llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll | ||
| 151 | You touched a lot more than just icmp, so this needs more tests to cover all the newly handled cases | |
| llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
|---|---|---|
| 259–265 | Yes.. it seems like I am doing some useless work. | |
| 268–271 | Oh thanks! I just learned that there are these APIs, let me replace them. | |
| 285 | Sorry.. I don't know what to do, can you tell me? | |
| llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll | ||
| 151 | I will add more tests later | |
| llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll | ||
|---|---|---|
| 151 | added | |
| llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
|---|---|---|
| 289 | You don't need to bother using getWithSamePointeeType. You can use Type::getWithNewType | |
| llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll | ||
| 4 | Generate full checks | |
| llvm/test/Transforms/InferAddressSpaces/vector-of-pointers.ll | ||
| 3 | Generate full checks | |
| llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | ||
|---|---|---|
| 289 | Does it mean this? do't check non-opaque types. static Type *getPtrOrVecOfPtrsWithNewAS(Type *Ty, unsigned NewAddrSpace) {
assert(Ty->isPtrOrPtrVectorTy());
PointerType *NPT = PointerType::get(Ty->getContext(), NewAddrSpace);
return Ty->getWithNewType(NPT);
} | |
| llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll | ||
|---|---|---|
| 4 | updated | |
| llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll | ||
|---|---|---|
| 4 | These aren't generated checks? I meant use update_test_checks | |
| llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll | ||
|---|---|---|
| 4 | Yeah.. but I've already rewritten with update_test_checks.py. I didn't know about its existence before, thx! | |
| llvm/test/Transforms/InferAddressSpaces/masked-gather-scatter.ll | ||
|---|---|---|
| 4 | Could you please commit this for me if there are no issues? I don't have permissions to do. thx! | |
This is reinventing Type::getPointerAddressSpace