[llvm] [Xtensa] Implement Xtensa Floating Point Option. (PR #136086)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 02:20:51 PDT 2025


================
@@ -50,6 +50,12 @@ class XtensaDAGToDAGISel : public SelectionDAGISel {
                         int Scale) {
     EVT ValTy = Addr.getValueType();
 
+    if (Addr.getOpcode() == XtensaISD::PCREL_WRAPPER) {
+      Base = Addr.getOperand(0);
+      if (Base.getOpcode() == ISD::TargetConstantPool)
+        return false; // We want to select L32R instead.
+    }
+
----------------
arsenm wrote:

Something is strange here. I would expect a pcrelative wrapper node to exclusively use a TargetConstant input.

Additionally I would expect preferred patterns to be handled by pattern ordering / AddedComplexity instead of artificially disabling one 



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


More information about the llvm-commits mailing list