[PowerPC] Add Itineraries of IIC_IntRotateDI for P7/P8
authorQingShan Zhang <qshanz@cn.ibm.com>
Mon, 3 Sep 2018 03:14:29 +0000 (03:14 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Mon, 3 Sep 2018 03:14:29 +0000 (03:14 +0000)
commitc2b6c547dc28b5a50701a70f2295267ab9f05deb
treebd9a5729d64007ef3e9eef79b680b16dd2bee6f3
parent17e709b66ac01f097e124ab058f0e483b597492d
[PowerPC] Add Itineraries of IIC_IntRotateDI for P7/P8
When doing some instruction scheduling work, we noticed some missing itineraries.
Before we switch to machine scheduler, those missing itineraries might not have impact to actually scheduling,
because we can still get same latency due to default values.

With machine scheduler, however, itineraries will have impact to scheduling.
eg: NumMicroOps will default to be 0 if there is NO itineraries for specific instruction class.
And most of the instruction class with itineraries will have NumMicroOps default to 1.

This will has impact on the count of RetiredMOps, affects the Pending/Available Queue,
then causing different scheduling or suboptimal scheduling further.

Patch by jsji (Jinsong Ji)
Differential Revision: https://reviews.llvm.org/D51506

llvm-svn: 341293
llvm/lib/Target/PowerPC/PPCScheduleP7.td
llvm/lib/Target/PowerPC/PPCScheduleP8.td
llvm/test/CodeGen/PowerPC/PR35812-neg-cmpxchg.ll
llvm/test/CodeGen/PowerPC/funnel-shift.ll
llvm/test/CodeGen/PowerPC/pr33093.ll
llvm/test/CodeGen/PowerPC/testBitReverse.ll