[InstCombine] Avoid some calls to ConstantExpr::get() (NFCI)
authorNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 14:06:49 +0000 (16:06 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 29 Jun 2022 14:26:02 +0000 (16:26 +0200)
commitdf698a5762009f4ce77c5f8d136059c78365f270
treed24391bc7101073a6118b6a861cd9be816bd0fbc
parente60ed2401b22074e02779081ca16fa93bd4cf244
[InstCombine] Avoid some calls to ConstantExpr::get() (NFCI)

Replace some calls to ConstantExpr::get() with IRBuilder APIs
(which will also constant fold if possible).
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp