aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2019-06-17 19:11:28 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2019-06-17 19:11:28 +0000
commitdaa1ae6142956039137253b15a2da4e3ac44b89f (patch)
tree9ff9a9cf500b2f8d30c4fb88d4d65f01a3f1d371 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent7a0098aa6e36a60fd4a825c3a1ea1bddad141501 (diff)
downloadllvm-daa1ae6142956039137253b15a2da4e3ac44b89f.zip
llvm-daa1ae6142956039137253b15a2da4e3ac44b89f.tar.gz
llvm-daa1ae6142956039137253b15a2da4e3ac44b89f.tar.bz2
[EarlyCSE] Fix hashing of self-compares
Summary: Update compare normalization in SimpleValue hashing to break ties (when the same value is being compared to itself) by switching to the swapped predicate if it has a lower numerical value. This brings the hashing in line with isEqual, which already recognizes the self-compares with swapped predicates as equal. Fixes PR 42280. Reviewers: spatel, efriedma, nikic, fhahn, uabelho Reviewed By: nikic Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63349 llvm-svn: 363598
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions