| commit | 863b5b05f18af760f1cd1a13022ec257edc1ab59 | [log] [tgz] |
|---|---|---|
| author | Diana Picus <diana.picus@linaro.org> | Wed Nov 29 14:20:06 2017 +0000 |
| committer | Diana Picus <diana.picus@linaro.org> | Wed Nov 29 14:20:06 2017 +0000 |
| tree | 4380d76199b2e380999d14752f711e0f98ea45b7 | |
| parent | 756348c1c99302023db5124e6b86a6fed5a0f606 [diff] |
[ARM GlobalISel] Fix selecting G_BRCOND When lowering a G_BRCOND, we generate a TSTri of the condition against 1, which sets the flags, and then a Bcc which branches based on the value of the flags. Unfortunately, we were using the wrong condition code to check whether we need to branch (EQ instead of NE), which caused all our branches to do the opposite of what they were intended to do. This patch fixes the issue by using the correct condition code. llvm-svn: 319313