diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2020-01-09 09:02:53 -0500 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2020-01-09 09:04:20 -0500 |
| commit | f53b38d12a7b9c6754d5bc91483efab935b5c012 (patch) | |
| tree | 6775a0911a6c91c3c41785c5161eebe77adab89e /lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h | |
| parent | 173b711e83d7b61a46f55eb44f03ea98f69a1dd6 (diff) | |
| download | llvm-f53b38d12a7b9c6754d5bc91483efab935b5c012.zip llvm-f53b38d12a7b9c6754d5bc91483efab935b5c012.tar.gz llvm-f53b38d12a7b9c6754d5bc91483efab935b5c012.tar.bz2 | |
[InstSimplify] select Cond, true, false --> Cond
This is step 1 of damage control assuming that we need to remove several
over-reaching folds for select-of-booleans because they can cause
miscompiles as shown in D72396.
The scalar case seems obviously safe:
https://rise4fun.com/Alive/jSj
And I don't think there's any danger for vectors either - if the
condition is poisoned, then the select must be poisoned too, so undef
elements don't make any difference.
Differential Revision: https://reviews.llvm.org/D72412
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h')
0 files changed, 0 insertions, 0 deletions
