[SCEV][NFC] Introduce utility function to get power of 2
authordbakunevich <dbakunevich@azul.com>
Mon, 20 Feb 2023 12:18:03 +0000 (19:18 +0700)
committerdbakunevich <dbakunevich@azul.com>
Tue, 28 Feb 2023 12:05:10 +0000 (19:05 +0700)
commit140d6a9f95fbb61a546f6acebca24e6fe3cda894
treec4b0118187191eaa6aa834950e84eed58e271973
parent4f9a5447c633083e99fd5cb448116fa8e5b1f976
[SCEV][NFC] Introduce utility function to get power of 2

The new function has been added to SCEV that allows to raise the number 2
to the desired power.

Authored-by: Dmitry Bakunevich
Differential Revision: https://reviews.llvm.org/D144381
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/unittests/Analysis/ScalarEvolutionTest.cpp