Real state Investments

If I own real estate investments, tax wise, is better to have them under my name and my wife or under an LLC?
Asking because some of them may help when filing under our name (instead an LLC) with a potential loss. Thanks