diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-12-08 13:39:28 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-12-08 13:47:08 -0800 |
commit | 21308c2b4c9dda8d44d2792f1359fc6b54984b87 (patch) | |
tree | a5250e1b9b73d88de7936df1e999ccd9fa880023 /clang/unittests/Frontend | |
parent | b85c6e5bcd1a9de941c318f9a5dc742818752a56 (diff) | |
download | llvm-21308c2b4c9dda8d44d2792f1359fc6b54984b87.zip llvm-21308c2b4c9dda8d44d2792f1359fc6b54984b87.tar.gz llvm-21308c2b4c9dda8d44d2792f1359fc6b54984b87.tar.bz2 |
[AArch64][GlobalISel] Check if G_SELECT has been optimized when folding binops
`TryFoldBinOpIntoSelect` didn't have a check for `Optimized`, meaning you could
end up folding twice. (e.g. a select with a G_ADD on the true side, and a G_SUB
on the false side)
Add in the missing `if` and a test.
Diffstat (limited to 'clang/unittests/Frontend')
0 files changed, 0 insertions, 0 deletions