summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-11-05 12:00:47 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-11-05 12:00:59 +0000
commitc1e7911c3b36ba41c919eabddf4e745e3b473e53 (patch)
tree9614957d9165f68ab1898273b70f66415dd38000 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentcd8cb5377af101d749c9a5cbd2b613ff537ab983 (diff)
[DAG] FoldConstantArithmetic - fold bitlogic(bitcast(x),bitcast(y)) -> bitcast(bitlogic(x,y))
To constant fold bitwise logic ops where we've legalized constant build vectors to a different type (e.g. v2i64 -> v4i32), this patch adds a basic ability to peek through the bitcasts and perform the constant fold on the inner operands. The MVE predicate v2i64 regressions will be addressed by future support for basic v2i64 type support. One of the yak shaving fixes for D113192.... Differential Revision: https://reviews.llvm.org/D113202
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions