[PATCH] D11340: [X86] Allow load folding into PUSH instructions

Michael Kuperstein michael.m.kuperstein at intel.com
Sun Jul 19 04:16:03 PDT 2015


mkuper added a comment.

Unfortunately, aside from 32-bit pushes on 32-bit platforms, I'm not aware of anything that actually generates memory-form pushes at the moment. But if at any point we start doing that, I think having folding from the start would be a good thing. If you can suggest scenarios where that's generated, I'll happily add a test.

Regarding pops - I wasn't originally planning on touching them, but it seems like the current definition is obviously wrong (a POP64rmm may store...), and I'd rather not leave bugs to lurk. :-)
I can fix it in a separate patch, but, as above - I'm not sure how to test that, since we don't actually generate them.


http://reviews.llvm.org/D11340







More information about the llvm-commits mailing list