summaryrefslogtreecommitdiff
path: root/lib/Target/R600/R600ExpandSpecialInstrs.cpp
diff options
context:
space:
mode:
authorVincent Lejeune <vljn@ovi.com>2013-06-04 23:17:15 +0000
committerVincent Lejeune <vljn@ovi.com>2013-06-04 23:17:15 +0000
commite67a4afb5da59c02338622eea68e096ba143113f (patch)
tree73c85516285abe45df6f12fa2a7a2971eb555c31 /lib/Target/R600/R600ExpandSpecialInstrs.cpp
parent00ed010d9ef388d718ac358132848661b286f7b0 (diff)
downloadllvm-e67a4afb5da59c02338622eea68e096ba143113f.tar.gz
llvm-e67a4afb5da59c02338622eea68e096ba143113f.tar.bz2
llvm-e67a4afb5da59c02338622eea68e096ba143113f.tar.xz
R600: Const/Neg/Abs can be folded to dot4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/R600ExpandSpecialInstrs.cpp')
-rw-r--r--lib/Target/R600/R600ExpandSpecialInstrs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/R600/R600ExpandSpecialInstrs.cpp b/lib/Target/R600/R600ExpandSpecialInstrs.cpp
index b9d5303ce1..072ae3a5dc 100644
--- a/lib/Target/R600/R600ExpandSpecialInstrs.cpp
+++ b/lib/Target/R600/R600ExpandSpecialInstrs.cpp
@@ -214,7 +214,9 @@ bool R600ExpandSpecialInstrsPass::runOnMachineFunction(MachineFunction &MF) {
.getReg();
(void) Src0;
(void) Src1;
- assert(TRI.getHWRegChan(Src0) == TRI.getHWRegChan(Src1));
+ if ((TRI.getEncodingValue(Src0) & 0xff) < 127 &&
+ (TRI.getEncodingValue(Src1) & 0xff) < 127)
+ assert(TRI.getHWRegChan(Src0) == TRI.getHWRegChan(Src1));
}
MI.eraseFromParent();
continue;