[llvm] 5e231ff - [PowerPC] Use APInt::getZExtValue() instead of getRawData(). NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 19:07:56 PDT 2024


Author: Craig Topper
Date: 2024-08-13T19:05:12-07:00
New Revision: 5e231ffe2907396e7af9b9fcfd78e5a6cc4420d3

URL: https://github.com/llvm/llvm-project/commit/5e231ffe2907396e7af9b9fcfd78e5a6cc4420d3
DIFF: https://github.com/llvm/llvm-project/commit/5e231ffe2907396e7af9b9fcfd78e5a6cc4420d3.diff

LOG: [PowerPC] Use APInt::getZExtValue() instead of getRawData(). NFC

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 1a69d1e89313b8..1dd5c5e04d2132 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -1296,7 +1296,7 @@ static SDNode *selectI64ImmDirectPrefix(SelectionDAG *CurDAG, const SDLoc &dl,
     APInt SignedInt34 = APInt(34, (Imm >> TZ) & 0x3ffffffff);
     APInt Extended = SignedInt34.sext(64);
     Result = CurDAG->getMachineNode(PPC::PLI8, dl, MVT::i64,
-                                    getI64Imm(*Extended.getRawData()));
+                                    getI64Imm(Extended.getZExtValue()));
     return CurDAG->getMachineNode(PPC::RLDIC, dl, MVT::i64, SDValue(Result, 0),
                                   getI32Imm(TZ), getI32Imm(LZ));
   }
@@ -1318,7 +1318,7 @@ static SDNode *selectI64ImmDirectPrefix(SelectionDAG *CurDAG, const SDLoc &dl,
     APInt SignedInt34 = APInt(34, (Imm >> (30 - LZ)) & 0x3ffffffff);
     APInt Extended = SignedInt34.sext(64);
     Result = CurDAG->getMachineNode(PPC::PLI8, dl, MVT::i64,
-                                    getI64Imm(*Extended.getRawData()));
+                                    getI64Imm(Extended.getZExtValue()));
     return CurDAG->getMachineNode(PPC::RLDICL, dl, MVT::i64, SDValue(Result, 0),
                                   getI32Imm(30 - LZ), getI32Imm(LZ));
   }
@@ -1331,7 +1331,7 @@ static SDNode *selectI64ImmDirectPrefix(SelectionDAG *CurDAG, const SDLoc &dl,
     APInt SignedInt34 = APInt(34, (Imm >> TO) & 0x3ffffffff);
     APInt Extended = SignedInt34.sext(64);
     Result = CurDAG->getMachineNode(PPC::PLI8, dl, MVT::i64,
-                                    getI64Imm(*Extended.getRawData()));
+                                    getI64Imm(Extended.getZExtValue()));
     return CurDAG->getMachineNode(PPC::RLDICL, dl, MVT::i64, SDValue(Result, 0),
                                   getI32Imm(TO), getI32Imm(LZ));
   }


        


More information about the llvm-commits mailing list