aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2017-07-11 05:28:26 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2017-07-11 05:28:26 +0000
commitf55ee1b4766869c1a60cb35a000960d73ba88349 (patch)
tree7e25521f8b39a87ef5a5b3b5d881c4de5fa48e16 /llvm/unittests/Support/ErrorTest.cpp
parent946ab551edefd28476e98d9a933ba46e1f976a3d (diff)
downloadllvm-f55ee1b4766869c1a60cb35a000960d73ba88349.zip
llvm-f55ee1b4766869c1a60cb35a000960d73ba88349.tar.gz
llvm-f55ee1b4766869c1a60cb35a000960d73ba88349.tar.bz2
[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 llvm-svn: 307623
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions