[llvm] [Cygwin] Cygwin X86ISelDAGToDAG.cpp (PR #76284)

Anton Korobeynikov via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 31 15:25:17 PST 2023


================
@@ -2944,6 +2944,18 @@ bool X86DAGToDAGISel::selectMOV64Imm32(SDValue N, SDValue &Imm) {
     return false;
 
   Imm = N;
+  if (Subtarget->isTargetWindowsCygwin() && Subtarget->isTargetWin64()) {
----------------
asl wrote:

This seems to largely duplicate the generic code below. The only difference is when we've failed to get absolute symbol range for the GV. So, certainly there should not be any code duplication and test / example is required.

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


More information about the llvm-commits mailing list