IR: Answer mayHaveSideEffects with one switch (#242589)
Previously this emitted 3 calls, each switching over the opcodes. Fold
to one which only needs to query attributes for calls.
CTMark instructions:u: O3 -0.13%, ThinLTO -0.17%.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>