diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-05-23 00:06:56 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-05-23 00:06:56 +0000 |
commit | cbb8438bb3b2a1f69b3bc9d5e0676b45f06a8876 (patch) | |
tree | 88d6b7a53119087a96e8c86c2d82faec7da5c7b8 /llvm/lib/Support/SmallPtrSet.cpp | |
parent | f713cced0e39b258ce856743ef7fb61908206417 (diff) | |
download | bcm5719-llvm-cbb8438bb3b2a1f69b3bc9d5e0676b45f06a8876.tar.gz bcm5719-llvm-cbb8438bb3b2a1f69b3bc9d5e0676b45f06a8876.zip |
ScalarEvolution: Fix handling of AddRecs in isKnownPredicate
ScalarEvolution::isKnownPredicate() can wrongly reduce a comparison
when both the LHS and RHS are SCEVAddRecExprs. This checks that both
LHS and RHS are guarded in the case when both are SCEVAddRecExprs.
The test case is against indvars because I could not find a way to
directly test SCEV.
Patch by Sanjay Patel!
llvm-svn: 209487
Diffstat (limited to 'llvm/lib/Support/SmallPtrSet.cpp')
0 files changed, 0 insertions, 0 deletions