[PATCH] D90924: [ConstantRange] Sign-flipping of signedness-invariant comparisons

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 30 07:13:30 PDT 2021


nikic added inline comments.


================
Comment at: llvm/unittests/IR/ConstantRangeTest.cpp:2560
+  };
+}
+
----------------
As a drive-by note without having looked at the rest yet: I'd love to have this publicly available somewhere. Could be used in https://github.com/llvm/llvm-project/blob/2c4a9e830cbb3b91a57902f7ecd508c544701819/llvm/lib/IR/ConstantFold.cpp#L1795-L1807 and I've wanted this on other occasions as well. Not sure where, maybe it could be a static method directly on ICmpInst?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90924/new/

https://reviews.llvm.org/D90924



More information about the llvm-commits mailing list