Bank of America Merrill Lynch will lay off 20-30 people from the firm's proprietary trading desk, a spokesperson for the company confirmed to CNBC Wednesday.

A Bank of America trader inside the NYSE.

The spokesperson noted that the layoffs were not based on performance, but rather are a step toward the bank's efforts to comply with new financial regulations.