[PATCH] D50623: [NFC] [Hexagon] Simplify int8 truncation and validation
Krzysztof Parzyszek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 13 05:29:44 PDT 2018
kparzysz added inline comments.
================
Comment at: lib/Target/Hexagon/HexagonBitSimplify.cpp:1980
- case Hexagon::S2_storerb_io:
- V = int8_t(U);
- break;
----------------
These casts are actually necessary. Those are store-register instructions that take a 32-bit register and store the lower 8, 16 or 32 bits, and this code tries to replace them with the equivalent store-immediate instructions. For example, if the register contains 0x001000FF, the S2_storerb_io instruction will store 0xFF and can be replaced with a store-immediate of -1.
Repository:
rL LLVM
https://reviews.llvm.org/D50623
More information about the llvm-commits
mailing list