[PATCH] D49015: [X86][Nearly NFC] Split SHLD/SHRD into their own WriteShiftDouble class

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 8 02:43:26 PDT 2018


lebedev.ri added inline comments.


================
Comment at: lib/Target/X86/X86Schedule.td:145
+// Double shift instructions.
+defm WriteShiftDouble : X86SchedWritePair;
 
----------------
RKSimon wrote:
> I'm not sure a basic sched pair is the best match for double shifts, at least on AMD targets the imm/reg versions and the RMW versions are all pretty different in their behaviours - see X86ScheduleBtVer2.td.
> 
> I'd be a lot happier if we had better perf numbers for all of these (we did some for Jaguar but nothing else - we need some decent Intel tests for starters) and then we can decide how to create the classes to match.
> 
> @lebedev.ri What do you think?
As the inconsistencies.html from Piledriver/bdev2 shows, it is indeed not the **best** match.
But keeping it in the `WriteShift` is //clearly// not ideal either.

I'm afraid i won't be of any help with numbers for other CPU's, as i don't have those.

These things aren't set in stone, right? They can be fine-tuned later?
If not, please click "request changes" now :)


Repository:
  rL LLVM

https://reviews.llvm.org/D49015





More information about the llvm-commits mailing list