aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2021-12-13 16:29:19 -0800
committerPhilip Reames <listmail@philipreames.com>2021-12-13 16:56:22 -0800
commite6ad9ef4e7ae6506e822c9ccf9a960354173210b (patch)
tree0f6b79cd18cb53039b49cc238096e4aa981c4a44 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentac994f831cb7ec7f589d13ef4be53c53b9102899 (diff)
downloadllvm-e6ad9ef4e7ae6506e822c9ccf9a960354173210b.zip
llvm-e6ad9ef4e7ae6506e822c9ccf9a960354173210b.tar.gz
llvm-e6ad9ef4e7ae6506e822c9ccf9a960354173210b.tar.bz2
[instcombine] Canonicalize constant index type to i64 for extractelement/insertelement
The basic idea to this is that a) having a single canonical type makes CSE easier, and b) many of our transforms are inconsistent about which types we end up with based on visit order. I'm restricting this to constants as for non-constants, we'd have to decide whether the simplicity was worth extra instructions. For constants, there are no extra instructions. We chose the canonical type as i64 arbitrarily. We might consider changing this to something else in the future if we have cause. Differential Revision: https://reviews.llvm.org/D115387
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions