diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-04-07 11:50:14 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-04-07 12:06:24 +0300 |
commit | 93d1d94b745b940c9ad0adf20322eb16ed624ef3 (patch) | |
tree | b19b8f5a8682142f5811d7bb281daf26ee0f7e82 /clang/lib/Basic/SourceManager.cpp | |
parent | c972e2d1c29fc248e47f1c502f90472a1c26b256 (diff) | |
download | llvm-93d1d94b745b940c9ad0adf20322eb16ed624ef3.zip llvm-93d1d94b745b940c9ad0adf20322eb16ed624ef3.tar.gz llvm-93d1d94b745b940c9ad0adf20322eb16ed624ef3.tar.bz2 |
[InstCombine] Restrict "C-(X+C2) --> (C-C2)-X" fold to immediate constants
I.e., if any/all of the consants is an expression, don't do it.
Since those constants won't reduce into an immediate,
but would be left as an constant expression, they could cause
endless combine loops after 31d219d2997fed1b7dc97e0adf170d5aaf65883e
added an inverse transformation.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions