aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-02 17:40:15 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-08 20:42:17 +0100
commita148b9e9909db6a592609eb35b4de38c9e67cb8b (patch)
tree768df60dd754ce9a5ca3c00f9507b6b46b04cf4a /llvm/lib/Analysis/CallGraph.cpp
parent5c159b91a24b07974328ab17fd56a244995f2944 (diff)
downloadllvm-a148b9e9909db6a592609eb35b4de38c9e67cb8b.zip
llvm-a148b9e9909db6a592609eb35b4de38c9e67cb8b.tar.gz
llvm-a148b9e9909db6a592609eb35b4de38c9e67cb8b.tar.bz2
[InstCombine] Fix infinite min/max canonicalization loop (PR44541)
While D72944 also fixes https://bugs.llvm.org/show_bug.cgi?id=44541, it does so in a more roundabout manner and there might be other loopholes to trigger the same issue. This is a more direct fix, that prevents the transform if the min/max is based on a non-canonical sub X, 0 instruction. Differential Revision: https://reviews.llvm.org/D73849
Diffstat (limited to 'llvm/lib/Analysis/CallGraph.cpp')
0 files changed, 0 insertions, 0 deletions