aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-14 23:40:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-14 23:40:03 +0000
commit5ebf2acd844efd558a962191345ecd3fbfe372f4 (patch)
tree394dcd212d7edfc2a24e8db22d126f3c15433aae /llvm/lib/CodeGen/MachineInstr.cpp
parentf0b575f79db133a7bcc373fb5480b9ab51514810 (diff)
downloadllvm-5ebf2acd844efd558a962191345ecd3fbfe372f4.zip
llvm-5ebf2acd844efd558a962191345ecd3fbfe372f4.tar.gz
llvm-5ebf2acd844efd558a962191345ecd3fbfe372f4.tar.bz2
Optimize conditional branch on i1 phis with non-constant inputs.
This turns: eq: %3 = icmp eq i32 %1, %2 br label %join ne: %4 = icmp ne i32 %1, %2 br label %join join: %5 = phi i1 [%3, %eq], [%4, %ne] br i1 %5, label %yes, label %no => eq: %3 = icmp eq i32 %1, %2 br i1 %3, label %yes, label %no ne: %4 = icmp ne i32 %1, %2 br i1 %4, label %yes, label %no llvm-svn: 69102
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions