This is a bit cleaner and removes issues with 2d vectors. It also has a
big impact on constant folding, hence the test changes.
Depends on D107891
Paths 
  |  Differential  D107896  
[mlir] Make polynomial approximation emit std instead of LLVM ops ClosedPublic Authored by bkramer on Aug 11 2021, 5:15 AM. 
Details Summary This is a bit cleaner and removes issues with 2d vectors. It also has a Depends on D107891 
Diff Detail 
 Event TimelineHerald added subscribers: wrengr, Chia-hungDuan, dcaballe and 18 others.  ·  View Herald TranscriptAug 11 2021, 5:15 AM This revision is now accepted and ready to land.Aug 11 2021, 7:17 AM Closed by commit rGc1ebefdf77f3: [mlir] Make polynomial approximation emit std instead of LLVM ops (authored by bkramer).  ·  Explain WhyAug 11 2021, 7:38 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 365757 mlir/lib/Dialect/Math/Transforms/CMakeLists.txt
 mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
 mlir/test/Dialect/Math/polynomial-approximation.mlir
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||