Magnetic field and pressure effects on charge density wave, superconducting, and magnetic states in Lu
5Ir
4Si
10 and Er
5Ir
4Si
10This work investigates the charge-density-wave (CDW), superconducting, and magnetic states in Lu$_5$Ir$_4$Si$_{10}$ and Er$_5$Ir$_4$Si$_{10}$ under temperature, magnetic field, and pressure. In Lu$_5$Ir$_4$Si$_{10}$, pressure strongly suppresses the CDW phase but weakly enhances superconductivity. In Er$_5$Ir$_4$Si$_{10}$, the incommensurate CDW is pressure-independent, while the commensurate CDW strongly depends on pressure, and antiferromagnetic ordering is slightly depressed. Additionally, Er$_5$Ir$_4$Si$_{10}$ exhibits negative magnetoresistance at low temperatures, contrasting with the positive magnetoresistance of Lu$_5$Ir$_4$Si$_{10}$.