diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-10-04 22:41:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-10-04 22:41:01 +0000 |
commit | c8d6cfd7308a43caf1b4102a2d321bdeb334b911 (patch) | |
tree | d4891391723f273fa59fe89343bae21fbc2bf074 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 405fe67f1424284173459575b1081f42935c50fd (diff) | |
download | bcm5719-llvm-c8d6cfd7308a43caf1b4102a2d321bdeb334b911.tar.gz bcm5719-llvm-c8d6cfd7308a43caf1b4102a2d321bdeb334b911.zip |
This DAG combine BRCOND transformation can look pass truncate of the operand:
// %a = ...
// %b = and i32 %a, 2
// %c = srl i32 %b, 1
// brcond i32 %c ...
//
// into
//
// %a = ...
// %b = and i32 %a, 2
// %c = setcc eq %b, 0
// brcond %c ...
Make sure it restores local variable N1, which corresponds to the condition operand if it fails to match.
This apparently breaks TCE but since that backend isn't in the tree I don't have a test for it.
llvm-svn: 115571
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
0 files changed, 0 insertions, 0 deletions