diff options
author | Michael Liao <michael.liao@intel.com> | 2012-08-10 19:58:13 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2012-08-10 19:58:13 +0000 |
commit | 5248e9913fc8a0c86fa576ee04752eb0f0133d56 (patch) | |
tree | 36f2262ffbd53c40cf0fe926a00a475337cda3df /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | a7020aee0004dd9a746e1f9404b10a7bcfdb35b5 (diff) | |
download | llvm-5248e9913fc8a0c86fa576ee04752eb0f0133d56.zip llvm-5248e9913fc8a0c86fa576ee04752eb0f0133d56.tar.gz llvm-5248e9913fc8a0c86fa576ee04752eb0f0133d56.tar.bz2 |
add X86-specific DAG optimization to simplify boolean test
- if a boolean test (X86ISD::CMP or X86ISD:SUB) checks a boolean value
generated from X86ISD::SETCC, try to simplify the boolean value
generation and checking by reusing the original EFLAGS with proper
condition code
- add hooks to X86 specific SETCC/BRCOND/CMOV, the major 3 places
consuming EFLAGS
part of patches fixing PR12312
llvm-svn: 161687
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions