[PATCH] D120136: [VRP] Construct constant range from xor operation

Joseph Faulls via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 18 08:36:48 PST 2022


Joe created this revision.
Herald added subscribers: dexonsmith, hiraditya.
Joe requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Retains information when two constant ranges are xor'd together. This is
only possible if both constant ranges do not range over signage.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120136

Files:
  llvm/lib/Analysis/LazyValueInfo.cpp
  llvm/lib/IR/ConstantRange.cpp
  llvm/test/Transforms/CorrelatedValuePropagation/xor.ll
  llvm/unittests/IR/ConstantRangeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120136.409945.patch
Type: text/x-patch
Size: 9602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220218/c1ca67fa/attachment.bin>


More information about the llvm-commits mailing list