Generally wiped data, cashe/dalvik will be enought. I had one incident that from China dev rom to global dev rom on my redmi note 2 prime, I wiped system, data/dalvik fellow flashing the global dev rom, flashed superSU 2.65, reboot and twrp prompted me that my phone without root, twrp offer to...