I wouldn’t…and what bolt is ever in compression?
Front post mount caliper bolts?
Ashima do alu rotor bolts, they’re a bit soft, but they’re designed to be rotor bolts, so I figure they’ll be fine!
I’d not use alu in stem, seatpost, seat clamp and it’s probably not that sensible in calipers (although I’d certainly do it). Everywhere else they’re fine, so everything in your mechs, shifters, brake levers, chain rings, bottle cage, headset top cap etc. In fact, get one of the Mt Zoom one piece top cap and bolt, cheap, neat, and saves a chunk of weight over a normal bolt/top cap.
On the other hand, if your bike is 27lbs, changing all those bolts may get you 80g or so, which isn’t really much, so I’d look elsewhere first, unless the bike’s an 8″ travel DH bike.
However.