[SCEVExpander] Use CreateBitOrPointerCast instead of builder (NFC).
authorFlorian Hahn <flo@fhahn.com>
Thu, 29 Sep 2022 08:24:38 +0000 (09:24 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 29 Sep 2022 08:24:39 +0000 (09:24 +0100)
commit9247b012d6dda9add8a46329acd9641eb5af24e3
tree94781d7f2d7b219cc4f4f5bd5a9037665a09273c
parentdba8fced969e2eca9e8650a874293927db17d131
[SCEVExpander] Use CreateBitOrPointerCast instead of builder (NFC).

Simplify the code by using CastInst::CreateBitOrPointerCast directly. By
not going through the builder, the temporary instruction also won't get
registered in InsertedValues & co, which means less work overall and
simplifies the clean-up.
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp