[llvm] [SelectionDAG] Add support for the 3-way comparison intrinsics [US]CMP (PR #91871)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 10:15:13 PDT 2024
================
@@ -7143,6 +7143,22 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
setValue(&I, DAG.getNode(ISD::ABS, sdl, Op1.getValueType(), Op1));
return;
}
+ case Intrinsic::scmp: {
+ SDValue Op1 = getValue(I.getArgOperand(0));
+ SDValue Op2 = getValue(I.getArgOperand(1));
+ EVT DestVT = DAG.getTargetLoweringInfo().getValueType(DAG.getDataLayout(),
----------------
dtcxzyw wrote:
```suggestion
EVT DestVT = TLI.getValueType(DAG.getDataLayout(),
```
See https://github.com/llvm/llvm-project/blob/4b5e0a1d12f0d624852c6d7c82207647ed5282aa/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp#L6342-L6346
https://github.com/llvm/llvm-project/pull/91871
More information about the llvm-commits
mailing list