I am noticing that after the Grift Guardian dies, the character will upgrade gems first if it can, and then pick up SOME of the legendarys on the floor. Leaving behind some legendarys including gems if you do not have them yet. It is not consistent and sometimes it will pick up everything.