[llvm] [SelectionDAG] Add preliminary plumbing for `samesign` flag (PR #112354)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 11:27:19 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);
----------------
antoniofrighetto wrote:
We are still free to use FlagInserter, independently of the changes in #114061, this should be fine.
https://github.com/llvm/llvm-project/pull/112354
More information about the llvm-commits
mailing list