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

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 02:53:49 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.
+    }
+
----------------
andreisfr wrote:

Fixed. I implemented pattern ordering using AddedComplexity  for load operations from ConstantPool.

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


More information about the llvm-commits mailing list