diff options
| author | Florian Hahn <flo@fhahn.com> | 2024-09-24 11:18:49 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2024-09-24 11:18:50 +0100 |
| commit | 040bb37195d93f75cc7ce6b83254ab5db959a085 (patch) | |
| tree | cb5a899db897493dd7876015e62ee1e32d6a8507 /llvm/lib | |
| parent | f664d313cd63893d7a4a496fdf0de988323b6b09 (diff) | |
| download | llvm-040bb37195d93f75cc7ce6b83254ab5db959a085.zip llvm-040bb37195d93f75cc7ce6b83254ab5db959a085.tar.gz llvm-040bb37195d93f75cc7ce6b83254ab5db959a085.tar.bz2 | |
[VPlan] Fix incorrect argument for CreateBinOp after 06c3a7d2d764.
06c3a7d2d764 incorrectly updated CreateBinOp to pass the debug location,
which gets interpreted as FPMath node. Remove the argument.
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp index 3f7ab41..318d6a8 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp @@ -1504,8 +1504,8 @@ void VPWidenIntOrFpInductionRecipe::execute(VPTransformState &State) { VecInd->setDebugLoc(EntryVal->getDebugLoc()); State.set(this, VecInd); - Instruction *LastInduction = cast<Instruction>(Builder.CreateBinOp( - AddOp, VecInd, SplatVF, "vec.ind.next", EntryVal->getDebugLoc())); + Instruction *LastInduction = cast<Instruction>( + Builder.CreateBinOp(AddOp, VecInd, SplatVF, "vec.ind.next")); if (isa<TruncInst>(EntryVal)) State.addMetadata(LastInduction, EntryVal); LastInduction->setDebugLoc(EntryVal->getDebugLoc()); |
