diff options
author | Philip Reames <preames@rivosinc.com> | 2023-05-12 10:30:05 -0700 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2023-05-12 10:33:29 -0700 |
commit | 13984608992246e42e66c019f09764650d60af63 (patch) | |
tree | c8e922609873abdf546e7beb04d4fde3e2bc34f5 /llvm/lib/Support/StringRef.cpp | |
parent | d1aee9c0cbd8f9efc1938348a5bab8fa947c90d2 (diff) | |
download | llvm-13984608992246e42e66c019f09764650d60af63.zip llvm-13984608992246e42e66c019f09764650d60af63.tar.gz llvm-13984608992246e42e66c019f09764650d60af63.tar.bz2 |
[RISCVGatherScatterLowering] Minor code cleanup [NFC]
Use a switch to avoid repeat tests on the opcode, and factor out some common code out of another switch. (Not all branches had both common bits, but the one which didn't left the values unchanged and their starting value is the respective operand - so storing it back is a nop.)
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions