summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/OptimizePHIs.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-13 12:20:39 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-13 12:20:39 +0000
commit7abbd7030017beb60d27f1608e2a6b058dac7e4f (patch)
treea3af00dc243e189e0f64d68808f69d48ac863a70 /llvm/lib/CodeGen/OptimizePHIs.cpp
parent8eacea80ad609ec45d4ee6326ca439b8dfd6769f (diff)
downloadbcm5719-llvm-7abbd7030017beb60d27f1608e2a6b058dac7e4f.tar.gz
bcm5719-llvm-7abbd7030017beb60d27f1608e2a6b058dac7e4f.zip
[X86][AVX] lowerShuffleAsBroadcast - improve load folding by avoiding bitcasts
AVX1 broadcasts were failing as we were adding bitcasts that caused MayFoldLoad's hasOneUse to return false. This patch stops introducing bitcasts so early and also replaces the broadcast index scaling through bitcasts (which can't succeed in some cases) to instead just keep track of the bitoffset which can be converted back to the broadcast index later on. Differential Revision: https://reviews.llvm.org/D58888 llvm-svn: 356043
Diffstat (limited to 'llvm/lib/CodeGen/OptimizePHIs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud