projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17fd273
)
Print select instructions correctly
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Mar 2004 05:53:14 +0000
(
05:53
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 12 Mar 2004 05:53:14 +0000
(
05:53
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12320
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index fd3cda6148020ca2b0be062eb09de04b1fc7db40..b90a5b2857796b8936bf6334924b9ba3de074ed6 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-915,8
+915,9
@@
void AssemblyWriter::printInstruction(const Instruction &I) {
bool PrintAllTypes = false;
const Type *TheType = Operand->getType();
- // Shift Left & Right print both types even for Ubyte LHS
- if (isa<ShiftInst>(I)) {
+ // Shift Left & Right print both types even for Ubyte LHS, and select prints
+ // types even if all operands are bools.
+ if (isa<ShiftInst>(I) || isa<SelectInst>(I)) {
PrintAllTypes = true;
} else {
for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {