diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-27 18:33:15 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-28 22:43:52 +0100 |
commit | 4a16c507cb68e425226e81598d91963aacdd57ed (patch) | |
tree | 87605d1e5a0b14ced2b0a5fa3c22b29470ff5ec9 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | b4655a0815d0cd75297cfe323526397ee7a03dca (diff) | |
download | llvm-4a16c507cb68e425226e81598d91963aacdd57ed.zip llvm-4a16c507cb68e425226e81598d91963aacdd57ed.tar.gz llvm-4a16c507cb68e425226e81598d91963aacdd57ed.tar.bz2 |
[InstCombine] Disable unsafe select transform behind a flag
This disables the poison-unsafe select -> and/or transform behind
a flag (we continue to perform the fold by default). This is intended
to simplify evaluation and testing while we teach various passes
to directly recognize the select pattern.
This only disables the main select -> and/or transform. A number of
related ones are instead changed to canonicalize to the a ? b : false
and a ? true : b forms which represent and/or respectively. This
requires a bit of care to avoid infinite loops, as we do not want
!a ? b : false to be converted into a ? false : b.
The basic idea here is the same as D93065, but keeps the change
behind a flag for now.
Differential Revision: https://reviews.llvm.org/D93840
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions