[PATCH] D90924: [ConstantRange] Sign-flipping of signedness-invariant comparisons
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 6 03:06:52 PST 2020
lebedev.ri created this revision.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.
lebedev.ri requested review of this revision.
Not very sure how useful this is.
I initially thought this could be used to help with unsigned comparisons,
but i'm not sure yet if that's actually a correct usage in `ScalarEvolution::isImpliedViaOperations()`.
Not sure how to generalize `ConstantRange::areInsensitiveToSignednessOfSwappedICmpPredicate()`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90924
Files:
llvm/include/llvm/IR/ConstantRange.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/IR/ConstantRange.cpp
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
llvm/test/Transforms/CorrelatedValuePropagation/range.ll
llvm/unittests/IR/ConstantRangeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90924.303395.patch
Type: text/x-patch
Size: 15293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201106/7de43943/attachment.bin>
More information about the llvm-commits
mailing list