summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-01-31 22:26:31 +0000
committerCraig Topper <craig.topper@intel.com>2018-01-31 22:26:31 +0000
commite44faf53c769bf444aaf81358f85e46e26dd1d46 (patch)
treeb27dba3865466e9912617e186d040b699c293eec /llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
parent74295975f430a09478afcb68b58e1207f55d3250 (diff)
downloadbcm5719-llvm-e44faf53c769bf444aaf81358f85e46e26dd1d46.tar.gz
bcm5719-llvm-e44faf53c769bf444aaf81358f85e46e26dd1d46.zip
[X86] Make the type checks in detectAVX512USatPattern more robust
This code currently uses isSimple and getSizeInBits in an attempt to prune types. But isSimple will return true for any type that any target supports natively. I don't think that's a good way to prune types. I also don't think the dest element type checks are very robust since we didn't do an isSimple check on the dest type. This patch adds a check for the input type being legal to the one caller that didn't already check that. Then we explicitly check the element types for the destination are i8, i16, or i32 Differential Revision: https://reviews.llvm.org/D42706 llvm-svn: 323924
Diffstat (limited to 'llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud