diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-08 22:30:05 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-08 22:30:05 +0000 |
commit | 0f68fbb9e5a6ccc59c3c75581d4e594347ca4c92 (patch) | |
tree | a165987d68fc44ff8f75bc5e685784f4f66b6ab5 /lib/CodeGen/CodeGen.cpp | |
parent | 791e2e0867d1e6fcb9c6f651da89f57043bc6c4a (diff) |
canonicalize:
-%a + 42
into
42 - %a
previously we were emitting:
-(%a + 42)
This fixes the infinite loop in PR12338. The generated code is still not perfect, though.
Will work on that next
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions