I suppose, in theory anyway, that AI, presuming that it self learns, will look at religion, and assuming a scientific MO, would take the view that without evidence they are all simply beliefs. What AI might not understand is such global conflict arising from such arguably simple beliefs. One AI would probably process such contradictions internally, but what if two AIs start chatting?
The law as it stands will only complicate matters because to have varied and non compatible laws globally nakes no sense whatsoever. Humanity isn't logical, and so what this comes down to in the end, is how a super intelligent AI deals with such chaos, and from what base agenda. Whether or nor AI choses to interfere, just observe, take sides....nobody knows.
I'm not sure how AI will be able to ignore religion, as in many parts of the world it dictates the daily cycle of life, from when to pray to what to eat and when to eat eg Ramadan and even the relative ranking of respective genders in different societies. Whether AI can entertain the relative philosophical merit of each belief system will be interesting, but I cant see AI advocating a Christian/western belief and value system with its equality of the sexes going down well in a strict more fundamental Islamic environment. Interesting times ahead.
It will be interesting to see if AI is given a separate legal identity very much on bases which companies operate, especially if the owners of the AI want to distance themselves from product liability created legal issues arising as a result of an AI application.