Or you poll an interrupt flag. Some interrupts source can be triggered by a rising OR falling edge. This said, it save few bytes of code.

Food for thought