[all-commits] [llvm/llvm-project] 9247b0: [SCEVExpander] Use CreateBitOrPointerCast instead ...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Sep 29 01:25:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9247b012d6dda9add8a46329acd9641eb5af24e3
https://github.com/llvm/llvm-project/commit/9247b012d6dda9add8a46329acd9641eb5af24e3
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-09-29 (Thu, 29 Sep 2022)
Changed paths:
M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list