diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-03-18 00:41:29 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-03-18 00:41:29 +0000 |
commit | cb8bca177759da7de882dc5f867deb3703f1596f (patch) | |
tree | c7fb6d88b324422884be86dd1120bc95b7f102e5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7182d36f660a8cd439b94198316410080070a6af (diff) | |
download | llvm-cb8bca177759da7de882dc5f867deb3703f1596f.zip llvm-cb8bca177759da7de882dc5f867deb3703f1596f.tar.gz llvm-cb8bca177759da7de882dc5f867deb3703f1596f.tar.bz2 |
[SCEV] Make isImpliedCond smarter.
Summary:
This change teaches isImpliedCond to infer things like "X sgt 0" => "X -
1 sgt -1". The `ConstantRange` class has the logic to do the heavy
lifting, this change simply gets ScalarEvolution to exploit that when
reasonable.
Depends on D8345
Reviewers: atrick
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8346
llvm-svn: 232576
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions