[llvm] [AArch64][SME] Conditionally do smstart/smstop (PR #77113)

Matthew Devereau via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 03:22:08 PST 2024


================
@@ -4852,17 +4852,16 @@ static SDValue getSVEPredicateBitCast(EVT VT, SDValue Op, SelectionDAG &DAG) {
   return DAG.getNode(ISD::AND, DL, VT, Reinterpret, Mask);
 }
 
-SDValue AArch64TargetLowering::getPStateSM(SelectionDAG &DAG, SDValue Chain,
-                                           SMEAttrs Attrs, SDLoc DL,
-                                           EVT VT) const {
-  if (Attrs.hasStreamingInterfaceOrBody())
+SDValue AArch64TargetLowering::getPStateSM(
+    SelectionDAG &DAG, SDValue Chain, SMEAttrs Attrs, SDLoc DL, EVT VT,
+    bool AllowStreamingCompatibleInterface) const {
----------------
MDevereau wrote:

I've removed the extra operand and separated out the DAG.getConstants from this function.

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


More information about the llvm-commits mailing list