summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-10-21 16:35:39 +0000
committerCraig Topper <craig.topper@intel.com>2017-10-21 16:35:39 +0000
commitb98ee58511415ffce8400a9caf5ac89bcc5adb35 (patch)
treec486dc457214453e8dc4ba11a0726e5a83ae02d7 /llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
parentc739affc439d57e18a57f0f2c4d113ffc492cb24 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud