[llvm] [aarch64] XOR the frame pointer with the stack cookie when protecting the stack (PR #161114)
    Pan Tao via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Oct 10 18:39:16 PDT 2025
    
    
  
================
@@ -32,7 +32,7 @@ AArch64SelectionDAGInfo::AArch64SelectionDAGInfo()
 
 void AArch64SelectionDAGInfo::verifyTargetNode(const SelectionDAG &DAG,
                                                const SDNode *N) const {
-  SelectionDAGGenTargetInfo::verifyTargetNode(DAG, N);
+  //  SelectionDAGGenTargetInfo::verifyTargetNode(DAG, N);
----------------
PanTao2 wrote:
Thank you for your review and explanation!
There is fatal error:
````
LLVM ERROR: invalid node: operand #0 has invalid type; expected ch, got i64
t18: ch = AArch64ISD::BRCOND t3, BasicBlock:ch<entry 0x59e981fa35b0>, Constant:i32<1>, t16:1
  t3: i64,ch = load<(volatile load (s64) from %stack.0.StackGuardSlot)> t0, FrameIndex:i64<0>, undef:i64
  t16: i64,i32 = AArch64ISD::SUBS t8, t6
````
This fatal error is triggered by the following stack:
llvm::report_fatal_error
checkOperandType
[llvm::SDNodeInfo::verifyNode](https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/SelectionDAG/SDNodeInfo.cpp#L107) "if (HasChain) checkOperandType(DAG, N, 0, MVT::Other);"
llvm::SelectionDAGGenTargetInfo::verifyTargetNode
llvm::AArch64SelectionDAGInfo::verifyTargetNode
What do you suggest in this situation?
https://github.com/llvm/llvm-project/pull/161114
    
    
More information about the llvm-commits
mailing list