[flang-commits] [flang] [flang] Inline hlfir.cshift as hlfir.elemental. (PR #119480)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Dec 10 17:24:36 PST 2024


================
@@ -375,6 +478,24 @@ class SimplifyHLFIRIntrinsics
       }
       return true;
     });
+    target.addDynamicallyLegalOp<hlfir::CShiftOp>([](hlfir::CShiftOp cshift) {
----------------
vzakhari wrote:

I think it would be easier to turn this pass into a greedy conversion, and check all the conditions in the patterns themselves. If there are no objections, I will clean it up in a separate NFC patch.

https://github.com/llvm/llvm-project/pull/119480


More information about the flang-commits mailing list