#9311·Halide

We should investigate if the TBAA hack can be deleted entirely

Author: abadamsCreated Aug 10, 2026Updated Aug 10, 2026

We have always abused LLVM TBAA metadata to get it to understand that a load at ramp(16, 1, 8) can't alias a store at ramp(32, 1, 4) or a scalar store at 53. This dates back to LLVM 3.x, where it was helpful. I don't know if it's still helpful or how we could even test if it's still helpful. It would be good to delete this hack if possible.