aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-04-15 13:55:32 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-04-15 13:55:51 +0100
commit9d57a77b81265c650c75511115067588790d7ac0 (patch)
tree61f220fdb2f4dfe055843c7bb7352af659d08410 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parent22c017f0f902598505b57a9a7147278a7b4dad87 (diff)
downloadllvm-9d57a77b81265c650c75511115067588790d7ac0.zip
llvm-9d57a77b81265c650c75511115067588790d7ac0.tar.gz
llvm-9d57a77b81265c650c75511115067588790d7ac0.tar.bz2
[X86] combineCMP - fold cmpEQ/NE(TRUNC(X),0) -> cmpEQ/NE(X,0)
If we are truncating from a i32 source before comparing the result against zero, then see if we can directly compare the source value against zero. If the upper (truncated) bits are known to be zero then we can compare against that, hopefully increasing the chances of us folding the compare into a EFLAG result of the source's operation. Fixes PR49028. Differential Revision: https://reviews.llvm.org/D100491
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions