diff options
author | Diana Picus <diana.picus@linaro.org> | 2019-03-28 09:09:27 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2019-03-28 09:09:27 +0000 |
commit | 4d512df30035c54a81b2e67d80debbc09b003afb (patch) | |
tree | 600a0c093400c88d93c2210528c7506dc235d74c /llvm/lib/Transforms | |
parent | c2423fe6899aad89fe0ac2aa4b873cb79ec15bd0 (diff) | |
download | bcm5719-llvm-4d512df30035c54a81b2e67d80debbc09b003afb.tar.gz bcm5719-llvm-4d512df30035c54a81b2e67d80debbc09b003afb.zip |
[ARM GlobalISel] Fix selection of G_SELECT
G_SELECT uses a 1-bit scalar for the condition, and is currently
implemented with a plain CMPri against 0. This means that values such as
0x1110 are interpreted as true, when instead the higher bits should be
treated as undefined and therefore ignored. Replace the CMPri with a
TSTri against 0x1, which performs an implicit AND, yielding the expected
result.
llvm-svn: 357153
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions