Skip to content

Commit

Permalink
BFDiv byref fix (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jul 2, 2024
1 parent b7c2553 commit cb42e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enzyme/tools/enzyme-tblgen/blas-tblgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,8 @@ void emit_dag(bool forward, Twine resultVarName, DagInit *ruleDag,
os << ") subdenomar.push_back(item);\n";
os << " assert(subdenomar.size() == 1);\n";
os << " subdenom = subdenomar[0];\n";
os << " subdenom = load_if_ref(Builder2, fpType, subdenom, "
"byRefFloat);\n";
os << " assert(subnum);\n";
os << " assert(subdenom);\n";
os << resultVarName << " = Builder2.CreateFDiv(subnum, subdenom);\n";
Expand Down

0 comments on commit cb42e3b

Please sign in to comment.