He actually viewed Iron Man as a threat. "Cursed with knowledge". He didn't even try to kill anyone in Infinity War though he could have with ease.jussayin.. Thanos fired on his own army to save himself. He mocked the avengers/Iron Man too when he though he had the upper hand
Loki was an annoyance. Gamora had to be killed for his mission