[PowerPC, DAGCombiner] Fold a << (b % (sizeof(a) * 8)) back to a single instruction
authorTim Shen <timshen91@gmail.com>
Wed, 3 May 2017 00:07:02 +0000 (00:07 +0000)
committerTim Shen <timshen91@gmail.com>
Wed, 3 May 2017 00:07:02 +0000 (00:07 +0000)
commite59d06fe78fd3ec58a247b7af42b59013a61ac5e
tree0510b70595d4589b9a1ecce353c1b3561b707b46
parent0255227a58b80b6664df331f207919c10ef6e0bf
[PowerPC, DAGCombiner] Fold a << (b % (sizeof(a) * 8)) back to a single instruction

Summary:
This is the corresponding llvm change to D28037 to ensure no performance
regression.

Reviewers: bogner, kbarton, hfinkel, iteratee, echristo

Subscribers: nemanjai, llvm-commits

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

llvm-svn: 301990
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/test/CodeGen/PowerPC/shift_mask.ll