Can gaff rig improve a boat's windward performance ?

Does bermudan rig always improve a boat’s windward performance?

Not necessarily.

See Dick Durham’s blog Here