[JumpThreading] Avoid ConstantExpr::get() (NFCI)
authorNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 14:41:38 +0000 (16:41 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 14:43:05 +0000 (16:43 +0200)
commit2124b2f0e6083470cf27448e4217706ee646ab03
tree6cdd193bc5951b62436a63b667a7d9868c3c03e9
parent741f8f2bede58573560372bc219b2dec9a1d6643
[JumpThreading] Avoid ConstantExpr::get() (NFCI)

This code requires the result to be an UndefValue/ConstantInt
anyway (checked by getKnownConstant), so we are only interested
in the case where this folds.
llvm/lib/Transforms/Scalar/JumpThreading.cpp