[llvm] [X86][SelectionDAG] - Add support for llvm.canonicalize intrinsic (PR #106370)
Pawan Nirpal via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 01:08:06 PDT 2024
================
@@ -1275,6 +1275,56 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
}
}
break;
+ case ISD::FCANONICALIZE: {
+ const Triple &TT = DAG.getTarget().getTargetTriple();
+ if (TT.getArch() == Triple::x86 || TT.getArch() == Triple::x86_64) {
----------------
pawan-nirpal-031 wrote:
@andykaylor I was under the impression other targets except amdgpu also crashes, due to lack of implementation. To the best of my knowledge, I haven't come across any pattern that does load from constant pool, also I imagine vectors would be difficult to handle in such a case.
https://github.com/llvm/llvm-project/pull/106370
More information about the llvm-commits
mailing list