diff options
| author | Craig Topper <craig.topper@intel.com> | 2017-10-21 16:35:39 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2017-10-21 16:35:39 +0000 |
| commit | b98ee58511415ffce8400a9caf5ac89bcc5adb35 (patch) | |
| tree | c486dc457214453e8dc4ba11a0726e5a83ae02d7 /llvm/lib/Analysis/ScalarEvolutionNormalization.cpp | |
| parent | c739affc439d57e18a57f0f2c4d113ffc492cb24 (diff) | |
| download | bcm5719-llvm-b98ee58511415ffce8400a9caf5ac89bcc5adb35.tar.gz bcm5719-llvm-b98ee58511415ffce8400a9caf5ac89bcc5adb35.zip | |
[ValueTracking] Simplify the known bits code for constant vectors a little.
Neither of these cases really require a temporary APInt outside the loop. For the ConstantDataSequential case the APInt will never be larger than 64-bits so its fine to just call getElementAsAPInt. For ConstantVector we can get the APInt by reference and only make a copy where the inversion is needed.
llvm-svn: 316265
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionNormalization.cpp')
0 files changed, 0 insertions, 0 deletions

