diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-10 21:56:04 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-10 21:56:04 +0000 |
commit | 9f003f9262cd5a9e2ceb360f905782ed2bdc483f (patch) | |
tree | 7114783b0b288a519de9b34324354df2613af5d6 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 9ccde61f8182d53d8aad74ef60e8c72bc2213e64 (diff) | |
download | llvm-9f003f9262cd5a9e2ceb360f905782ed2bdc483f.zip llvm-9f003f9262cd5a9e2ceb360f905782ed2bdc483f.tar.gz llvm-9f003f9262cd5a9e2ceb360f905782ed2bdc483f.tar.bz2 |
[Hexagon] Couple of fixes in optimize addressing mode
- Check if an operand is an immediate before calling getImm. Some operands
that take constant values can actually have global symbols or other
constant expressions.
- When a load-constant instruction can be folded into users, make sure to
only delete it when all users have been successfully converted.
llvm-svn: 348802
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions