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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 11:23:22 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:

This was committed so can do this 

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


More information about the llvm-commits mailing list