aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-02-23 23:49:32 +0000
committerYonghong Song <yhs@fb.com>2018-02-23 23:49:32 +0000
commit60fed1fef0eaad1069aa49f147c3cd1b145381f6 (patch)
tree863335141025f2090afae9c747aba13ec3a34099 /clang/lib/Lex/ModuleMap.cpp
parentae961bb06127330c6ee04c1c584271f66829d74e (diff)
downloadllvm-60fed1fef0eaad1069aa49f147c3cd1b145381f6.zip
llvm-60fed1fef0eaad1069aa49f147c3cd1b145381f6.tar.gz
llvm-60fed1fef0eaad1069aa49f147c3cd1b145381f6.tar.bz2
bpf: New optimization pass for eliminating unnecessary i32 promotions
This pass performs peephole optimizations to cleanup ugly code sequences at MachineInstruction layer. Currently, the only optimization in this pass is to eliminate type promotion sequences for zero extending 32-bit subregisters to 64-bit registers. If the compiler could prove the zero extended source come from 32-bit subregistere then it is safe to erase those promotion sequece, because the upper half of the underlying 64-bit registers were zeroed implicitly already. Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Yonghong Song <yhs@fb.com> llvm-svn: 325991
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions