Skip to content
Snippets Groups Projects
Commit b0a76b09 authored by Chris Lattner's avatar Chris Lattner
Browse files

Another regression from the pattern isel

llvm-svn: 25867
parent 7ed3101d
No related branches found
No related tags found
No related merge requests found
......@@ -288,3 +288,19 @@ _test:
This is bad for register pressure, though the dag isel is producing a
better schedule. :)
//===---------------------------------------------------------------------===//
This testcase should have no SSE instructions in it, and only one load from
a constant pool:
double %test3(bool %B) {
%C = select bool %B, double 123.412, double 523.01123123
ret double %C
}
Currently, the select is being lowered, which prevents the dag combiner from
turning 'select (load CPI1), (load CPI2)' -> 'load (select CPI1, CPI2)'
The pattern isel got this one right.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment