aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-06-24 11:11:52 +0900
committerGitHub <noreply@github.com>2025-06-24 11:11:52 +0900
commitf0d898f36bceff94d40e2022814978fa5fd0cc8f (patch)
tree513168356923fe1d8ce431534bb4d8397250bef6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent90a6819cfe08da0dd9f2a06958933b07ca11ff75 (diff)
downloadllvm-f0d898f36bceff94d40e2022814978fa5fd0cc8f.zip
llvm-f0d898f36bceff94d40e2022814978fa5fd0cc8f.tar.gz
llvm-f0d898f36bceff94d40e2022814978fa5fd0cc8f.tar.bz2
DAG: Move get_dynamic_area_offset type check to IR verifier (#145268)
Also fix the LangRef to match the implementation. This was checking against the alloca address space size rather than the default address space. The check was also more permissive than the LangRef. The error check permitted any size less than the pointer size; follow the stricter wording of the LangRef.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index c01f1e7..04d6fd5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -7320,13 +7320,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
return;
case Intrinsic::get_dynamic_area_offset: {
SDValue Op = getRoot();
- EVT PtrTy = TLI.getFrameIndexTy(DAG.getDataLayout());
EVT ResTy = TLI.getValueType(DAG.getDataLayout(), I.getType());
- // Result type for @llvm.get.dynamic.area.offset should match PtrTy for
- // target.
- if (PtrTy.getFixedSizeInBits() < ResTy.getFixedSizeInBits())
- report_fatal_error("Wrong result type for @llvm.get.dynamic.area.offset"
- " intrinsic!");
Res = DAG.getNode(ISD::GET_DYNAMIC_AREA_OFFSET, sdl, DAG.getVTList(ResTy),
Op);
DAG.setRoot(Op);