OSDN Git Service

[PowerPC] avoid redundant analysis while lowering an immediate; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 11 Jul 2017 05:28:26 +0000 (05:28 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 11 Jul 2017 05:28:26 +0000 (05:28 +0000)
commit2ff5ec7b05f822e18b660110ebca3477c4ed4df7
treeb55db8585b4e5004fbd19709e7a8c3664cd84242
parentd2c491251a59344da45332034b77ff918ea49689
[PowerPC] avoid redundant analysis while lowering an immediate; NFC

This patch reduces compilation time by avoiding redundant analysis while selecting instructions to create an immediate.
If the instruction count required to create the input number without rotate is 2, we do not need further analysis to find a shorter instruction sequence with rotate; rotate + load constant cannot be done by 1 instruction (i.e. getInt64CountDirectnever return 0).
This patch should not change functionality.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp