aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-07-28 12:03:54 -0700
committerCraig Topper <craig.topper@intel.com>2020-07-28 12:12:09 -0700
commit69152a11cf181d9c1859947f0f2c2f1554a891f2 (patch)
tree5f39a8fdb81d1ba28b31ba08a340037bf33ac893 /clang/lib/CodeGen/CodeGenAction.cpp
parente5608cacfd60bb28685206ca96a8f3ceeee1e8a6 (diff)
downloadllvm-69152a11cf181d9c1859947f0f2c2f1554a891f2.zip
llvm-69152a11cf181d9c1859947f0f2c2f1554a891f2.tar.gz
llvm-69152a11cf181d9c1859947f0f2c2f1554a891f2.tar.bz2
[X86] Merge the two 'Emit the normal disp32 encoding' cases in SIB byte handling in emitMemModRMByte. NFCI
By repeating the Disp.isImm() check in a couple spots we can make the normal case for immediate and for expression the same. And then always rely on the ForceDisp32 flag to remove a later non-zero immediate check. This should make {disp32} pseudo prefix handling slightly easier as we need the normal disp32 handler to handle a immediate of 0.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions