Files
Craig Topper 35912b770f [X86] Add post-isel pseudos for rotate by immediate using SHLD/SHRD
Haswell CPUs have special support for SHLD/SHRD with the same register for both sources. Such an instruction will go to the rotate/shift unit on port 0 or 6. This gives it 1 cycle latency and 0.5 cycle reciprocal throughput. When the register is not the same, it becomes a 3 cycle operation on port 1. Sandybridge and Ivybridge always have 1 cyc latency and 0.5 cycle reciprocal throughput for any SHLD.

When FastSHLDRotate feature flag is set, we try to use SHLD for rotate by immediate unless BMI2 is enabled. But MachineCopyPropagation can look through a copy and change one of the sources to be different. This will break the hardware optimization.

This patch adds psuedo instruction to hide the second source input until after register allocation and MachineCopyPropagation. I'm not sure if this is the best way to do this or if there's some other way we can make this work.

Fixes PR41055

Differential Revision: https://reviews.llvm.org/D59391

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357096 91177308-0d34-0410-b5e6-96231b3b80d8
2019-03-27 17:29:34 +00:00
..
2019-01-17 10:49:01 +00:00
2019-01-17 10:49:01 +00:00
2019-02-13 17:30:03 +00:00
2019-01-27 06:15:39 +00:00
2019-02-21 15:30:28 +00:00
2019-03-15 21:17:53 +00:00
2019-02-26 16:55:10 +00:00
2019-01-24 18:34:00 +00:00
2019-03-15 21:17:53 +00:00
2019-03-15 21:17:53 +00:00
2019-02-26 16:55:10 +00:00
2019-03-15 21:17:53 +00:00
2019-03-08 19:16:26 +00:00
2019-01-26 13:56:53 +00:00
2019-03-15 21:17:53 +00:00
2019-03-02 02:44:16 +00:00
2019-03-15 21:17:53 +00:00