[PATCH] D32416: [x86, SSE] AVX1 PR28129

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 30 08:11:04 PDT 2017


spatel added inline comments.


================
Comment at: lib/Target/X86/X86InstrSSE.td:489
                        [(set VR128:$dst, (v4i32 immAllOnesV))]>;
+  let Predicates = [HasAVX1Only, OptForSize] in
+  def AVX1_SETALLONES: I<0, Pseudo, (outs VR256:$dst), (ins), "",
----------------
spatel wrote:
> Should this be "OptForMinSize"? Ie, I was just looking at some other code patterns, and we are inserting xorps/xorpd even at -Os. 
> 
> In fact, we're doing that even at -Oz which I think is a mistake.
After thinking about this again, I'm now wondering why we would make the zero reg input a part of the patterns here. Are there any other td patterns that do this? For the most part, I think we handle the xor generation using ExecutionDepsFix.


https://reviews.llvm.org/D32416





More information about the llvm-commits mailing list