diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-10-17 16:19:02 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-10-17 16:19:10 +0100 |
commit | 8e77458578d601cf714c0f444667f83ea2840621 (patch) | |
tree | 469833b1d77d34184b5905ab80030925a556019d /clang/lib/Basic/Module.cpp | |
parent | 45cadb4bd36b479dfc4daff451a6c924703ec7e0 (diff) | |
download | llvm-8e77458578d601cf714c0f444667f83ea2840621.zip llvm-8e77458578d601cf714c0f444667f83ea2840621.tar.gz llvm-8e77458578d601cf714c0f444667f83ea2840621.tar.bz2 |
[DAG] visitShiftByConstant - replace constant detection with FoldConstantArithmetic
Instead of checking that an operand is constant/opaque before calling getNode() and then checking that the result is a constant, just use FoldConstantArithmetic which will just early-out if the operands are not constant foldable.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions