Add rewrite patterns for fir.convert op canonicalization.
This patch is part of the upstreaming effort from fir-dev branch.
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
| Paths 
 |  Differential  D111537  
[fir] Add fir.convert canonicalization patterns ClosedPublic Authored by clementval on Oct 11 2021, 5:04 AM. 
Details Summary Add rewrite patterns for fir.convert op canonicalization. This patch is part of the upstreaming effort from fir-dev branch. Co-authored-by: Eric Schweitz <eschweitz@nvidia.com> 
Diff Detail 
 Event Timelineclementval added inline comments. This revision is now accepted and ready to land.Oct 11 2021, 7:11 AM Closed by commit rGc3abfe4207d3: [fir] Add fir.convert canonicalization patterns (authored by schweitz, committed by clementval).  ·  Explain WhyOct 11 2021, 7:28 AM This revision was automatically updated to reflect the committed changes. clementval marked 2 inline comments as done. 
Revision Contents 
 
Diff 378661 flang/include/flang/Optimizer/Transforms/CMakeLists.txt
 flang/include/flang/Optimizer/Transforms/RewritePatterns.td
 flang/lib/Optimizer/Dialect/FIROps.cpp
 flang/lib/Optimizer/Transforms/CMakeLists.txt
 flang/test/Fir/convert-fold.fir
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Do these patterns check that there are no other users? Or is that not a problem here?