aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-10-29 03:57:17 +0000
committerPhilip Reames <listmail@philipreames.com>2015-10-29 03:57:17 +0000
commiteb3e9dad7f307ff7c42cd8536553902894056609 (patch)
tree91cc7b02df0f6abfef7b0317c78faedd5178e2b6 /lldb/scripts/Python
parent5f7fcef17bc3c49c7502ab88b1c79e305ccd0028 (diff)
downloadllvm-eb3e9dad7f307ff7c42cd8536553902894056609.zip
llvm-eb3e9dad7f307ff7c42cd8536553902894056609.tar.gz
llvm-eb3e9dad7f307ff7c42cd8536553902894056609.tar.bz2
[LVI/CVP] Teach LVI about range metadata
Somewhat shockingly for an analysis pass which is computing constant ranges, LVI did not understand the ranges provided by range metadata. As part of this change, I included a change to CVP primarily because doing so made it much easier to write small self contained test cases. CVP was previously only handling the non-local operand case, but given that LVI can sometimes figure out information about instructions standalone, I don't see any reason to restrict this. There could possibly be a compile time impact from this, but I suspect it should be minimal. If anyone has an example which substaintially regresses, please let me know. I could restrict the block local handling to ICmps feeding Terminator instructions if needed. Note that this patch continues a somewhat bad practice in LVI. In many cases, we know facts about values, and separate context sensitive facts about values. LVI makes no effort to distinguish and will frequently cache the same value fact repeatedly for different contexts. I would like to change this, but that's a large enough change that I want it to go in separately with clear documentation of what's changing. Other examples of this include the non-null handling, and arguments. As a meta comment: the entire motivation of this change was being able to write smaller (aka reasonable sized) test cases for a future patch teaching LVI about select instructions. Differential Revision: http://reviews.llvm.org/D13543 llvm-svn: 251606
Diffstat (limited to 'lldb/scripts/Python')
0 files changed, 0 insertions, 0 deletions