diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-12-18 06:55:37 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-12-18 07:08:48 -0500 |
commit | d5f8878a6e7db01004a3bf61f6b6efbb7d5add25 (patch) | |
tree | b814e87f8bffec4156dffa35cd4a801d3b27a182 /clang/lib/Lex/ModuleMap.cpp | |
parent | 9ec5b512b67013f0b78460061a6c984a709f423f (diff) | |
download | llvm-d5f8878a6e7db01004a3bf61f6b6efbb7d5add25.zip llvm-d5f8878a6e7db01004a3bf61f6b6efbb7d5add25.tar.gz llvm-d5f8878a6e7db01004a3bf61f6b6efbb7d5add25.tar.bz2 |
[InstCombine] canonicalize insertelement order based on index
This puts lower insert indexes before higher. This is independent
of endian, so it requires an adjustment to a fold added with
4446f71ce392, but it makes that fold more robust.
That's also where this patch was suggested - D139668.
This matches what we already do in DAGCombiner, but there is one
more constraint because there's an existing canonicalization for
insert-of-scalar-constant. I'm not sure if that is still needed,
so it may be adjusted/removed as a follow-up.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions