[llvm] [CodeGen] Add preliminary plumbing for `samesign` flag (PR #112354)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:28:36 PDT 2024


================
@@ -3652,6 +3652,10 @@ void SelectionDAGBuilder::visitICmp(const ICmpInst &I) {
     Op2 = DAG.getPtrExtOrTrunc(Op2, getCurSDLoc(), MemVT);
   }
 
+  SDNodeFlags Flags;
+  Flags.setSameSign(I.hasSameSign());
+  SelectionDAG::FlagInserter FlagsInserter(DAG, Flags);
----------------
arsenm wrote:

Will need update after #114061

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


More information about the llvm-commits mailing list