summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2019-03-28 09:09:27 +0000
committerDiana Picus <diana.picus@linaro.org>2019-03-28 09:09:27 +0000
commit4d512df30035c54a81b2e67d80debbc09b003afb (patch)
tree600a0c093400c88d93c2210528c7506dc235d74c /llvm/lib/Transforms
parentc2423fe6899aad89fe0ac2aa4b873cb79ec15bd0 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud