OSDN Git Service

[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)
commit85fd68bf8250ae26b2a85a128d46396b79184dd0
treee81d1c2424317ef84019ff129369dfa00a0a4d50
parentc7dd63d90ed55dc3d03b295b3e5944dad022f7e9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301990 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/shift_mask.ll