[llvm] [CodeGen] Add preliminary plumbing for `samesign` flag (PR #112354)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 10:45:44 PDT 2024
================
@@ -3640,6 +3640,10 @@ void SelectionDAGBuilder::visitICmp(const ICmpInst &I) {
SDValue Op2 = getValue(I.getOperand(1));
ISD::CondCode Opcode = getICmpCondCode(predicate);
+ SDNodeFlags Flags;
+ Flags.setSameSign(I.hasSameSign());
+ SelectionDAG::FlagInserter FlagsInserter(DAG, Flags);
----------------
goldsteinn wrote:
I think this needs to be below the possible `getPtrExtOrTrunc` below.
https://github.com/llvm/llvm-project/pull/112354
More information about the llvm-commits
mailing list