[PATCH] D39976: [AArch64] Query the target when folding loads and stores

Geoff Berry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 07:29:51 PST 2018


gberry added a comment.

Would it not be simpler to just add a subtarget bool that controls whether the problematic opcodes are emitted and set it for your subtargets (similar to the way STRQroIsSlow is handled)?  That way you could avoid generating them not just in this pass, but in ISel and frame lowering?


https://reviews.llvm.org/D39976





More information about the llvm-commits mailing list