[llvm] [NFC][LoopVectorize] Clean up some code around getting a context (PR #111114)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 6 07:30:54 PDT 2024
================
@@ -8738,10 +8736,9 @@ addUsersInExitBlock(VPlan &Plan,
if (V->isLiveIn())
continue;
- VPValue *Ext = B.createNaryOp(
- VPInstruction::ExtractFromEnd,
- {V, Plan.getOrAddLiveIn(ConstantInt::get(
- IntegerType::get(ExitBB->getContext(), 32), 1))});
+ VPValue *Ext = B.createNaryOp(VPInstruction::ExtractFromEnd,
----------------
fhahn wrote:
Might be simpler to retrieve the context from the underlying instruction from `ExitIRI` instead of passing ti explicitly?
https://github.com/llvm/llvm-project/pull/111114
More information about the llvm-commits
mailing list