================ ---------------- paulwalker-arm wrote: How is the cache maintained? For example, it looks possible for visitADDSUB to erase a MOVI instruction that foldSharedAddSubConstant has just added to the cache. https://github.com/llvm/llvm-project/pull/225430