diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-04-14 23:40:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-04-14 23:40:03 +0000 |
commit | df2f1189a3e2ad92a40b0b05d79c271d82fad7a9 (patch) | |
tree | 39dcd92a82a6b0c733e1183aed2df3c7e7a204a0 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 5b9c31841f70878f6cc36e2d94241cffda169f73 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
0 files changed, 0 insertions, 0 deletions